Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 209.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.801 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0_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_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 43.92 kB / 377.8 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2552, allocations: 53.37 MB / 431.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004253/0.2595, allocations: 2.706 MB / 433.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.2609, allocations: 0.705 MB / 434.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.261, allocations: 7.938 kB / 434.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.2612, allocations: 55.44 kB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.2614, allocations: 103.2 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.2617, allocations: 107.8 kB / 434.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004407/0.2622, allocations: 390.5 kB / 435.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2624, allocations: 102.1 kB / 435.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.2626, allocations: 155.5 kB / 435.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.2628, allocations: 171.2 kB / 435.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.238e-05/0.2628, allocations: 40 kB / 435.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.414e-05/0.2629, allocations: 36 kB / 435.7 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.249e-05/0.263, allocations: 79.69 kB / 435.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.2632, allocations: 143.4 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.2637, allocations: 398.4 kB / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.2637, allocations: 0 / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2637, allocations: 0 / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.2637, allocations: 0 / 436.3 MB, free: 1.422 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.001398/0.2651, allocations: 0.6169 MB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.2651, allocations: 12.03 kB / 436.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.002e-05/0.2652, allocations: 62.72 kB / 437 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.2653, allocations: 36.7 kB / 437 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.2657, allocations: 233.9 kB / 437.2 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.2658, allocations: 24.81 kB / 437.3 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.615e-05/0.2658, allocations: 24.38 kB / 437.3 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007095/0.2665, allocations: 318.8 kB / 437.6 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2665, allocations: 0 / 437.6 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.2666, allocations: 16 kB / 437.6 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.2666, allocations: 8 kB / 437.6 MB, free: 0 / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007867/0.2674, allocations: 273.7 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.2692, allocations: 1.017 MB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007807/0.27, allocations: 198.5 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.2703, allocations: 88.78 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.2703, allocations: 4 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004528/0.2707, allocations: 157.1 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.2707, allocations: 4 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001241/0.272, allocations: 338.1 kB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.272, allocations: 81.11 kB / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003698/0.2724, allocations: 332.4 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2724, allocations: 29.7 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.2726, allocations: 207.9 kB / 440.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.754e-05/0.2726, allocations: 39.67 kB / 440.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.2727, allocations: 57.92 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.2729, allocations: 334.8 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003537/0.2732, allocations: 129.9 kB / 440.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004219/0.2737, allocations: 241.4 kB / 441.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007236/0.2744, allocations: 331.9 kB / 441.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2744, allocations: 4 kB / 441.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009731/0.2754, allocations: 441.4 kB / 441.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.472e-05/0.2754, allocations: 33.7 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2754, allocations: 4 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001744/0.2756, allocations: 32.83 kB / 441.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.2759, allocations: 72.05 kB / 442 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.277, allocations: 1.299 MB / 443.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.2774, allocations: 55.86 kB / 443.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.2774, allocations: 23.98 kB / 443.4 MB, free: 9.797 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.0001631/0.2776, allocations: 145.8 kB / 443.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.2776, allocations: 23.86 kB / 443.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.395e-05/0.2776, allocations: 26.61 kB / 443.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2777, allocations: 4 kB / 443.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.2777, allocations: 3.938 kB / 443.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2777, allocations: 0 / 443.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000459/0.2781, allocations: 390.3 kB / 444 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2781, allocations: 4.031 kB / 444 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.2783, allocations: 35.91 kB / 444 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001011/0.2784, allocations: 28.77 kB / 444 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.2784, allocations: 4 kB / 444 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009918/0.2794, allocations: 1.284 MB / 445.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2794, allocations: 4.031 kB / 445.3 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007366/0.2801, allocations: 274.4 kB / 445.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.986e-05/0.2802, allocations: 35.83 kB / 445.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.683e-05/0.2802, allocations: 3.984 kB / 445.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.2804, allocations: 27.97 kB / 445.6 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.2805, allocations: 23.91 kB / 445.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2805, allocations: 4 kB / 445.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.2808, allocations: 227.1 kB / 445.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2808, allocations: 0 / 445.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.2811, allocations: 75.89 kB / 446 MB, free: 6.996 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.001031/0.2821, allocations: 0.8051 MB / 446.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009703/0.2831, allocations: 431.8 kB / 447.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2831, allocations: 3.938 kB / 447.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004608/0.2836, allocations: 215.3 kB / 447.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.2839, allocations: 49.66 kB / 447.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005133/0.289, allocations: 3.272 MB / 450.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001915/0.2892, allocations: 146.9 kB / 450.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001769/0.2894, allocations: 30.97 kB / 450.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.2896, allocations: 87.41 kB / 451 MB, free: 1.66 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2896, allocations: 0 / 451 MB, free: 1.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04612/0.3357, allocations: 6.983 MB / 458 MB, free: 10.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.32, allocations: 0 / 458 MB, free: 10.87 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.out.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.837941083998885]