Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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.001314/0.001314, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001379/0.001379, allocations: 204.5 kB / 23.73 MB, free: 4.379 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.395/1.395, 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.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 55.91 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2553, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003626/0.2589, allocations: 2.1 MB / 433.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2601, allocations: 0.5844 MB / 433.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.959e-05/0.2602, allocations: 4 kB / 433.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.2603, allocations: 19.78 kB / 433.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.409e-05/0.2604, allocations: 43.58 kB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.2606, allocations: 55.86 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.2608, allocations: 155.3 kB / 434 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.261, allocations: 47.34 kB / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.2612, allocations: 67.72 kB / 434.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.2613, allocations: 63.7 kB / 434.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.2613, allocations: 12 kB / 434.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.751e-05/0.2614, allocations: 31.98 kB / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.313e-05/0.2614, allocations: 27.86 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.404e-05/0.2615, allocations: 55.8 kB / 434.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.2617, allocations: 175.2 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2617, allocations: 4 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2617, allocations: 0 / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2617, allocations: 0 / 434.5 MB, free: 3.195 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006115/0.2623, allocations: 377.8 kB / 434.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.2624, allocations: 8.031 kB / 434.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.637e-05/0.2624, allocations: 46.73 kB / 434.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.2626, allocations: 28.83 kB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.2629, allocations: 138.4 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.263, allocations: 8.609 kB / 435.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.263, allocations: 20.3 kB / 435.1 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.2633, allocations: 153.3 kB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2633, allocations: 0 / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.2633, allocations: 4 kB / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2633, allocations: 4 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.2635, allocations: 72.67 kB / 435.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008093/0.2643, allocations: 486.3 kB / 435.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.2646, allocations: 78.62 kB / 435.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.396e-05/0.2647, allocations: 32.97 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.2647, allocations: 0 / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.2647, allocations: 34.56 kB / 436 MB, free: 1.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.31e-07/0.2647, allocations: 0 / 436 MB, free: 1.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006828/0.2654, allocations: 178.3 kB / 436.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.2654, allocations: 51.41 kB / 436.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.2656, allocations: 161.7 kB / 436.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.2656, allocations: 29.7 kB / 436.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.258e-05/0.2657, allocations: 124.1 kB / 436.5 MB, free: 1.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.2657, allocations: 23.78 kB / 436.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.2658, allocations: 21.72 kB / 436.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.2659, allocations: 326.8 kB / 436.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.541e-05/0.266, allocations: 31.92 kB / 436.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.769e-05/0.2661, allocations: 42.56 kB / 436.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.2662, allocations: 70.5 kB / 437 MB, free: 480 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2662, allocations: 0 / 437 MB, free: 480 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002771/0.2665, allocations: 134.6 kB / 437.1 MB, free: 336 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.2665, allocations: 12.06 kB / 437.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.2665, allocations: 0 / 437.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002153/0.2667, allocations: 36.84 kB / 437.2 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.597e-05/0.2668, allocations: 11.98 kB / 437.2 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.2684, allocations: 1.578 MB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/0.2685, allocations: 3.938 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.2685, allocations: 8 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.2686, allocations: 121.8 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.2686, allocations: 11.98 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.2686, allocations: 16.7 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2686, allocations: 4 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.2686, allocations: 0 / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2686, allocations: 0 / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.2689, allocations: 184.6 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2689, allocations: 4 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.651e-05/0.2689, allocations: 8.109 kB / 439.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001198/0.269, allocations: 32.84 kB / 439.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.269, allocations: 4 kB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.2704, allocations: 1.566 MB / 440.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2704, allocations: 0 / 440.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003289/0.2707, allocations: 216.2 kB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.193e-05/0.2707, allocations: 11.94 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.2708, allocations: 4 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.348e-05/0.2709, allocations: 4 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.864e-05/0.2709, allocations: 4.359 kB / 441 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.2709, allocations: 8 kB / 441 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000101/0.271, allocations: 129.9 kB / 441.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.271, allocations: 4.062 kB / 441.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003524/0.2713, allocations: 39.89 kB / 441.2 MB, free: 12.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006145/0.272, allocations: 0.7405 MB / 441.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.2724, allocations: 182.6 kB / 442.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2724, allocations: 128 / 442.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.2726, allocations: 166.6 kB / 442.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.2728, allocations: 11.94 kB / 442.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.2748, allocations: 1.721 MB / 444 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.754e-05/0.2749, allocations: 98.27 kB / 444.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.166e-05/0.275, allocations: 8.469 kB / 444.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.215e-05/0.275, allocations: 31.42 kB / 444.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.275, allocations: 0 / 444.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.3066, allocations: 3.521 MB / 447.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.22, allocations: 3.25 kB / 447.6 MB, free: 5.527 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable resistor.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.723368551000021]