Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 191.5 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 39.94 kB / 371.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2621, allocations: 52.19 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00429/0.2664, allocations: 2.69 MB / 426.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2678, allocations: 0.6816 MB / 426.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.2679, allocations: 4 kB / 426.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.2681, allocations: 51.5 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002177/0.2683, allocations: 95.19 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.2686, allocations: 119.8 kB / 427 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004489/0.2691, allocations: 390.4 kB / 427.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.2693, allocations: 96.5 kB / 427.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.2696, allocations: 151.5 kB / 427.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.2698, allocations: 175.2 kB / 427.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/0.2698, allocations: 36 kB / 427.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.101e-05/0.2699, allocations: 36 kB / 427.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.706e-05/0.27, allocations: 79.69 kB / 428 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.2702, allocations: 143.3 kB / 428.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.2706, allocations: 402.4 kB / 428.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2706, allocations: 0 / 428.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2706, allocations: 4 kB / 428.5 MB, free: 9.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.2706, allocations: 0 / 428.5 MB, free: 9.254 MB / 334.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.00136/0.272, allocations: 0.613 MB / 429.1 MB, free: 8.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.272, allocations: 8.031 kB / 429.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.156e-05/0.2721, allocations: 8.688 kB / 429.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.957e-05/0.2721, allocations: 58.72 kB / 429.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.2722, allocations: 40.7 kB / 429.2 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.2726, allocations: 233.9 kB / 429.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.2726, allocations: 20.88 kB / 429.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.29e-05/0.2727, allocations: 28.38 kB / 429.5 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007211/0.2734, allocations: 326.5 kB / 429.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2734, allocations: 4 kB / 429.8 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.2735, allocations: 8 kB / 429.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.2735, allocations: 11.98 kB / 429.8 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007866/0.2743, allocations: 269.8 kB / 430.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.2761, allocations: 1.021 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000799/0.2769, allocations: 198.5 kB / 431.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003074/0.2772, allocations: 88.78 kB / 431.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.2772, allocations: 4 kB / 431.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/0.2777, allocations: 153 kB / 431.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.522e-06/0.2777, allocations: 192 / 431.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001301/0.279, allocations: 342.1 kB / 431.9 MB, free: 5.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/0.2791, allocations: 81.11 kB / 432 MB, free: 5.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000414/0.2795, allocations: 320.6 kB / 432.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.957e-05/0.2795, allocations: 33.69 kB / 432.3 MB, free: 5.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.2797, allocations: 215.8 kB / 432.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.2797, allocations: 31.73 kB / 432.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.2798, allocations: 53.89 kB / 432.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.28, allocations: 342.8 kB / 433 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003811/0.2804, allocations: 133.8 kB / 433.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.2809, allocations: 236.7 kB / 433.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/0.2816, allocations: 335.9 kB / 433.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2816, allocations: 0 / 433.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001014/0.2826, allocations: 445.5 kB / 434.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.408e-05/0.2827, allocations: 36.2 kB / 434.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.2827, allocations: 7.984 kB / 434.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/0.2829, allocations: 28.84 kB / 434.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.2832, allocations: 71.88 kB / 434.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.2843, allocations: 1.287 MB / 435.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003522/0.2847, allocations: 55.7 kB / 435.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.2847, allocations: 12 kB / 435.6 MB, free: 1.648 MB / 334.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.0001642/0.2849, allocations: 149.9 kB / 435.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/0.2849, allocations: 27.86 kB / 435.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.752e-05/0.285, allocations: 30.59 kB / 435.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.285, allocations: 7.938 kB / 435.8 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.285, allocations: 0 / 435.8 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.285, allocations: 3.984 kB / 435.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004841/0.2855, allocations: 390.3 kB / 436.2 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.2855, allocations: 3.984 kB / 436.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.2856, allocations: 31.91 kB / 436.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.943e-05/0.2857, allocations: 28.88 kB / 436.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.2858, allocations: 8.375 kB / 436.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.2868, allocations: 1.284 MB / 437.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2868, allocations: 0 / 437.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007337/0.2876, allocations: 274.5 kB / 437.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.673e-05/0.2876, allocations: 31.8 kB / 437.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.2877, allocations: 4 kB / 437.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.2879, allocations: 31.91 kB / 437.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.288, allocations: 23.91 kB / 437.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.288, allocations: 4 kB / 437.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002472/0.2882, allocations: 227.1 kB / 438.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2882, allocations: 0 / 438.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.2886, allocations: 71.89 kB / 438.2 MB, free: 14.84 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.001057/0.2896, allocations: 0.8051 MB / 439 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009817/0.2906, allocations: 432.2 kB / 439.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2906, allocations: 0 / 439.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004874/0.2911, allocations: 214.7 kB / 439.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.2914, allocations: 45.33 kB / 439.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004928/0.2964, allocations: 3.272 MB / 442.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.2965, allocations: 146.9 kB / 443.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.2966, allocations: 30.97 kB / 443.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.2968, allocations: 95.39 kB / 443.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2968, allocations: 0 / 443.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/0.3277, allocations: 6.543 MB / 449.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.97, allocations: 11.25 kB / 449.8 MB, free: 3.18 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.318740263930522] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 12.130039857001975 12.145937676 11.87208954 Calling exit ...