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.001858/0.001858, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002437/0.002437, allocations: 192.5 kB / 23.71 MB, free: 4.406 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.401/1.401, allocations: 225.7 MB / 252.5 MB, free: 12.79 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 55.91 kB / 370.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2698, allocations: 52.17 MB / 422.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004654/0.2745, allocations: 2.707 MB / 425.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.2759, allocations: 0.6778 MB / 426 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.2761, allocations: 11.94 kB / 426 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.2763, allocations: 47.5 kB / 426 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.2765, allocations: 95.19 kB / 426.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.2769, allocations: 119.8 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004869/0.2773, allocations: 390.5 kB / 426.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.2776, allocations: 94.41 kB / 426.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.2778, allocations: 151.4 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.278, allocations: 151.2 kB / 427 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-05/0.2781, allocations: 36 kB / 427.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.576e-05/0.2781, allocations: 36 kB / 427.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.219e-05/0.2782, allocations: 75.73 kB / 427.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.2784, allocations: 139.4 kB / 427.3 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005028/0.2789, allocations: 406.4 kB / 427.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2789, allocations: 0 / 427.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2789, allocations: 3.938 kB / 427.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.2789, allocations: 3.938 kB / 427.7 MB, free: 9.418 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.001335/0.2802, allocations: 0.6092 MB / 428.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2803, allocations: 8.031 kB / 428.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.35e-05/0.2804, allocations: 58.73 kB / 428.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.2804, allocations: 40.7 kB / 428.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004559/0.2809, allocations: 237.8 kB / 428.7 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.2809, allocations: 20.88 kB / 428.7 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.277e-05/0.281, allocations: 24.38 kB / 428.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000715/0.2817, allocations: 326.8 kB / 429 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2817, allocations: 0 / 429 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.2817, allocations: 12 kB / 429 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.2817, allocations: 4 kB / 429 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008816/0.2826, allocations: 273.8 kB / 429.3 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.2845, allocations: 1.017 MB / 430.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/0.2853, allocations: 202.5 kB / 430.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002995/0.2856, allocations: 80.8 kB / 430.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2856, allocations: 4 kB / 430.6 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004627/0.2861, allocations: 165.1 kB / 430.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.2861, allocations: 0 / 430.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001237/0.2873, allocations: 330.1 kB / 431.1 MB, free: 5.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/0.2874, allocations: 93.06 kB / 431.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/0.2878, allocations: 328.5 kB / 431.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.2878, allocations: 29.7 kB / 431.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.288, allocations: 219.8 kB / 431.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.288, allocations: 27.75 kB / 431.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.2881, allocations: 57.88 kB / 431.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.2883, allocations: 338.8 kB / 432.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.2887, allocations: 129.9 kB / 432.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004865/0.2892, allocations: 239.5 kB / 432.5 MB, free: 4.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007432/0.2899, allocations: 335.5 kB / 432.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2899, allocations: 0 / 432.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001009/0.2909, allocations: 433.5 kB / 433.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.291, allocations: 37.8 kB / 433.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.291, allocations: 4 kB / 433.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001983/0.2912, allocations: 36.83 kB / 433.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000274/0.2914, allocations: 67.89 kB / 433.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.2927, allocations: 1.299 MB / 434.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.293, allocations: 51.75 kB / 434.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.2931, allocations: 15.94 kB / 434.8 MB, free: 1.824 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.0001687/0.2932, allocations: 149.8 kB / 434.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.2933, allocations: 27.94 kB / 434.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.214e-05/0.2933, allocations: 30.61 kB / 435 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2933, allocations: 0 / 435 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2933, allocations: 7.938 kB / 435 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2933, allocations: 0 / 435 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004845/0.2938, allocations: 394.3 kB / 435.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2938, allocations: 384 / 435.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.294, allocations: 27.97 kB / 435.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.2941, allocations: 40.73 kB / 435.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.2941, allocations: 4 kB / 435.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.2952, allocations: 1.284 MB / 436.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.2952, allocations: 7.875 kB / 436.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000769/0.296, allocations: 266.6 kB / 437 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.348e-05/0.2961, allocations: 35.78 kB / 437 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.2961, allocations: 4 kB / 437 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.2963, allocations: 31.95 kB / 437.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.2964, allocations: 19.92 kB / 437.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.2964, allocations: 7.984 kB / 437.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002602/0.2967, allocations: 227.1 kB / 437.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2967, allocations: 0 / 437.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003456/0.297, allocations: 71.89 kB / 437.4 MB, free: 15.01 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.001125/0.2981, allocations: 0.8012 MB / 438.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.2992, allocations: 435.4 kB / 438.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2992, allocations: 1 kB / 438.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004825/0.2997, allocations: 214.6 kB / 438.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.3, allocations: 55.25 kB / 438.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005057/0.305, allocations: 3.256 MB / 442.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.3052, allocations: 146.9 kB / 442.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.3053, allocations: 34.97 kB / 442.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.3055, allocations: 83.41 kB / 442.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3055, allocations: 4 kB / 442.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03795/0.3434, allocations: 6.883 MB / 449.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.63, allocations: 11.05 kB / 449.3 MB, free: 2.977 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.023389785084873]