Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001778/0.001778, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002075/0.002075, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.455/1.455, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 71.88 kB / 373.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1026, allocations: 53.31 MB / 426.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004405/0.107, allocations: 2.914 MB / 429.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1085, allocations: 0.7401 MB / 430.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.1086, allocations: 7.938 kB / 430.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.1088, allocations: 55.44 kB / 430.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002041/0.109, allocations: 99.19 kB / 430.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.1093, allocations: 99.86 kB / 430.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004515/0.1097, allocations: 402.4 kB / 431.2 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.11, allocations: 91.94 kB / 431.3 MB, free: 384 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.1102, allocations: 155.4 kB / 431.5 MB, free: 228 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.1104, allocations: 163.3 kB / 431.6 MB, free: 64 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.1105, allocations: 36 kB / 431.7 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2088/0.3193, allocations: 40.39 kB / 431.7 MB, free: 8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.3194, allocations: 75.41 kB / 431.8 MB, free: 8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.3197, allocations: 168.4 kB / 431.9 MB, free: 8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005228/0.3202, allocations: 395 kB / 432.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3202, allocations: 4.562 kB / 432.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3202, allocations: 0 / 432.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.3202, allocations: 0.9688 kB / 432.3 MB, free: 7.938 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001254/0.3215, allocations: 0.6894 MB / 433 MB, free: 7.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3215, allocations: 10.59 kB / 433 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.332e-05/0.3216, allocations: 59.58 kB / 433.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.336e-05/0.3216, allocations: 41.36 kB / 433.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.322, allocations: 294.2 kB / 433.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.322, allocations: 25.25 kB / 433.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.3221, allocations: 21.66 kB / 433.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000627/0.3227, allocations: 327.8 kB / 433.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3227, allocations: 3.875 kB / 433.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.3227, allocations: 8.062 kB / 433.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.3227, allocations: 6.25 kB / 433.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006865/0.3234, allocations: 273.1 kB / 434.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.3249, allocations: 1.131 MB / 435.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007233/0.3256, allocations: 204.6 kB / 435.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.3259, allocations: 87.08 kB / 435.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.3259, allocations: 1.969 kB / 435.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003853/0.3263, allocations: 162 kB / 435.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3263, allocations: 0 / 435.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001157/0.3275, allocations: 412.6 kB / 436.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.3275, allocations: 86.45 kB / 436.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.3278, allocations: 332.4 kB / 436.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.3278, allocations: 31.88 kB / 436.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.328, allocations: 208.7 kB / 436.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.328, allocations: 35.12 kB / 436.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-05/0.3281, allocations: 54.41 kB / 436.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.3281, allocations: 339.8 kB / 437.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/0.3285, allocations: 101.1 kB / 437.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/0.3288, allocations: 215 kB / 437.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006147/0.3294, allocations: 329 kB / 437.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3294, allocations: 2.766 kB / 437.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008558/0.3303, allocations: 401.8 kB / 438.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.3303, allocations: 34.11 kB / 438.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3303, allocations: 4.625 kB / 438.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.3305, allocations: 38.59 kB / 438.2 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.3308, allocations: 63.14 kB / 438.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007314/0.3315, allocations: 1.407 MB / 439.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003381/0.3318, allocations: 61.19 kB / 439.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.3319, allocations: 11.59 kB / 439.8 MB, free: 3.699 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.332, allocations: 147.2 kB / 439.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.332, allocations: 30.28 kB / 439.9 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.735e-05/0.3321, allocations: 30.97 kB / 440 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3321, allocations: 1.031 kB / 440 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.3321, allocations: 5 kB / 440 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3321, allocations: 5.578 kB / 440 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/0.3324, allocations: 453.4 kB / 440.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3324, allocations: 0 / 440.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.3326, allocations: 30.27 kB / 440.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.926e-05/0.3327, allocations: 34.2 kB / 440.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.3327, allocations: 1.984 kB / 440.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006275/0.3333, allocations: 1.399 MB / 441.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3333, allocations: 0 / 441.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000646/0.334, allocations: 270.7 kB / 442.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-05/0.334, allocations: 107 kB / 442.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.3341, allocations: 8.891 kB / 442.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.3343, allocations: 28.45 kB / 442.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.3344, allocations: 30.64 kB / 442.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.3344, allocations: 4.562 kB / 442.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.3346, allocations: 229.6 kB / 442.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3346, allocations: 0 / 442.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003472/0.3349, allocations: 68.39 kB / 442.6 MB, free: 1.574 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008529/0.3358, allocations: 0.8092 MB / 443.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008547/0.3366, allocations: 400.3 kB / 443.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3366, allocations: 0 / 443.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.337, allocations: 217.8 kB / 444 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.3374, allocations: 48.91 kB / 444.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004883/0.3422, allocations: 3.147 MB / 447.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.3427, allocations: 0.7547 MB / 448 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.3429, allocations: 35 kB / 448 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.343, allocations: 87.5 kB / 448.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.343, allocations: 0 / 448.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.3762, allocations: 6.14 MB / 454.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.784/10.16, allocations: 9.312 kB / 454.2 MB, free: 12.71 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.4986003045924] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 10.240787371993065 10.254154 9.931130289 Calling exit ...