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.001321/0.001321, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001408/0.001408, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001531/0.001531, allocations: 47.92 kB / 377.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2436, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004606/0.2482, allocations: 2.718 MB / 433.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.2497, allocations: 0.705 MB / 434.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002471/0.25, allocations: 8 kB / 434.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.2502, allocations: 51.5 kB / 434.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.2505, allocations: 99.19 kB / 434.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.2508, allocations: 107.8 kB / 434.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005178/0.2513, allocations: 390.5 kB / 435.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.2515, allocations: 94.14 kB / 435.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000243/0.2518, allocations: 159.4 kB / 435.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/0.252, allocations: 147.3 kB / 435.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.492e-05/0.2521, allocations: 36 kB / 435.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.305e-05/0.2522, allocations: 40 kB / 435.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.763e-05/0.2522, allocations: 75.69 kB / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.2524, allocations: 139.3 kB / 435.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004582/0.2528, allocations: 402.4 kB / 436.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2529, allocations: 0 / 436.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2529, allocations: 0 / 436.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2529, allocations: 0 / 436.3 MB, free: 1.488 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.001356/0.2542, allocations: 0.613 MB / 436.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2543, allocations: 12.03 kB / 436.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.607e-05/0.2543, allocations: 66.67 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.635e-05/0.2544, allocations: 40.69 kB / 437 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/0.2548, allocations: 233.9 kB / 437.2 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.2549, allocations: 20.88 kB / 437.2 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.793e-05/0.2549, allocations: 24.38 kB / 437.3 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007045/0.2556, allocations: 322.8 kB / 437.6 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.2556, allocations: 0 / 437.6 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.2557, allocations: 8 kB / 437.6 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.2557, allocations: 8 kB / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008172/0.2565, allocations: 277.7 kB / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.2583, allocations: 1.021 MB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008027/0.2591, allocations: 202.5 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003117/0.2595, allocations: 84.92 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.2595, allocations: 4 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004252/0.2599, allocations: 160.9 kB / 439.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.2599, allocations: 0 / 439.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001241/0.2611, allocations: 334 kB / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.2612, allocations: 85.11 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003747/0.2616, allocations: 328.5 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.2616, allocations: 29.7 kB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.2618, allocations: 207.9 kB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.2618, allocations: 39.69 kB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.922e-05/0.2619, allocations: 53.97 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2621, allocations: 342.8 kB / 440.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00038/0.2624, allocations: 125.9 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.2629, allocations: 241.4 kB / 441.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007451/0.2636, allocations: 343.9 kB / 441.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2636, allocations: 0 / 441.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009889/0.2646, allocations: 440.7 kB / 441.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.2647, allocations: 33.7 kB / 441.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.2647, allocations: 4 kB / 441.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/0.2648, allocations: 37.05 kB / 441.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.2651, allocations: 67.89 kB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.2663, allocations: 1.295 MB / 443.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.2666, allocations: 63.86 kB / 443.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.2667, allocations: 12 kB / 443.3 MB, free: 9.867 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.0001535/0.2668, allocations: 141.8 kB / 443.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.2669, allocations: 27.84 kB / 443.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.06e-05/0.2669, allocations: 30.61 kB / 443.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2669, allocations: 4 kB / 443.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.2669, allocations: 3.938 kB / 443.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.2669, allocations: 384 / 443.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004466/0.2674, allocations: 398.3 kB / 443.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2674, allocations: 0 / 443.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.2675, allocations: 27.97 kB / 444 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.512e-05/0.2676, allocations: 32.72 kB / 444 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.2677, allocations: 7.984 kB / 444 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.2687, allocations: 1.287 MB / 445.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2687, allocations: 0 / 445.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000748/0.2694, allocations: 270.5 kB / 445.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.717e-05/0.2695, allocations: 31.83 kB / 445.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.2695, allocations: 8 kB / 445.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.2698, allocations: 23.95 kB / 445.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.615e-05/0.2698, allocations: 23.86 kB / 445.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.2699, allocations: 7.984 kB / 445.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002545/0.2701, allocations: 235.1 kB / 445.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2701, allocations: 0 / 445.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.2704, allocations: 71.83 kB / 446 MB, free: 7.059 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.001075/0.2715, allocations: 0.809 MB / 446.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.2725, allocations: 423.8 kB / 447.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2725, allocations: 0 / 447.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004927/0.273, allocations: 211.5 kB / 447.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.2734, allocations: 55.77 kB / 447.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005238/0.2786, allocations: 3.26 MB / 450.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.2788, allocations: 146.9 kB / 450.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.2789, allocations: 34.97 kB / 450.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.279, allocations: 83.41 kB / 451 MB, free: 1.734 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.279, allocations: 0 / 451 MB, free: 1.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03758/0.3166, allocations: 6.912 MB / 457.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.73, allocations: 8.047 kB / 457.9 MB, free: 11.01 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.13532621320337]