Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.001889/0.001889, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002011/0.002011, allocations: 187.5 kB / 23.7 MB, free: 4.191 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.427/1.427, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 47.92 kB / 370.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2518, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003615/0.2554, allocations: 2.068 MB / 424.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000905/0.2563, allocations: 0.5105 MB / 425.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.875e-05/0.2564, allocations: 0 / 425.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.2565, allocations: 19.8 kB / 425.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.636e-05/0.2566, allocations: 51.56 kB / 425.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.2568, allocations: 47.81 kB / 425.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.257, allocations: 155.2 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.2572, allocations: 42.39 kB / 425.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.2573, allocations: 63.78 kB / 425.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.2574, allocations: 59.7 kB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.642e-05/0.2574, allocations: 16 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.825e-05/0.2575, allocations: 19.98 kB / 425.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.667e-05/0.2575, allocations: 31.86 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.893e-05/0.2576, allocations: 55.73 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.2578, allocations: 159.4 kB / 425.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2578, allocations: 4 kB / 425.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.2578, allocations: 0 / 425.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.2578, allocations: 0 / 425.9 MB, free: 11.08 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.000635/0.2585, allocations: 377.8 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2585, allocations: 12.03 kB / 426.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.891e-05/0.2585, allocations: 42.75 kB / 426.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.787e-05/0.2586, allocations: 16.84 kB / 426.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.2589, allocations: 150.3 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.2589, allocations: 8.609 kB / 426.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.2589, allocations: 12.38 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.2592, allocations: 150.5 kB / 426.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.2592, allocations: 0 / 426.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.2592, allocations: 4 kB / 426.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.2592, allocations: 4 kB / 426.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.2594, allocations: 76.66 kB / 426.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007627/0.2602, allocations: 482.4 kB / 427.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.2605, allocations: 90.5 kB / 427.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.395e-05/0.2606, allocations: 28.97 kB / 427.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.2606, allocations: 0 / 427.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.2606, allocations: 30.56 kB / 427.3 MB, free: 9.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.41e-07/0.2606, allocations: 4 kB / 427.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006788/0.2613, allocations: 178.3 kB / 427.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.2613, allocations: 51.41 kB / 427.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.2615, allocations: 141.8 kB / 427.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.2615, allocations: 29.7 kB / 427.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.829e-05/0.2616, allocations: 132.1 kB / 427.8 MB, free: 8.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/0.2616, allocations: 19.8 kB / 427.9 MB, free: 8.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.42e-05/0.2616, allocations: 25.7 kB / 427.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.2618, allocations: 318.8 kB / 428.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.469e-05/0.2618, allocations: 19.98 kB / 428.2 MB, free: 8.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-05/0.2619, allocations: 46.75 kB / 428.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.2621, allocations: 74.55 kB / 428.3 MB, free: 8.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2621, allocations: 4 kB / 428.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002928/0.2624, allocations: 138.3 kB / 428.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.2624, allocations: 4 kB / 428.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.2624, allocations: 0 / 428.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001967/0.2626, allocations: 40.83 kB / 428.5 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.332e-05/0.2626, allocations: 8 kB / 428.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.2642, allocations: 1.57 MB / 430.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.983e-05/0.2643, allocations: 15.88 kB / 430.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.2643, allocations: 0 / 430.1 MB, free: 6.473 MB / 334.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.2644, allocations: 129.8 kB / 430.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.2644, allocations: 15.89 kB / 430.3 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.104e-05/0.2645, allocations: 12.72 kB / 430.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2645, allocations: 4.031 kB / 430.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.2645, allocations: 0 / 430.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2645, allocations: 320 / 430.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.2647, allocations: 180.7 kB / 430.4 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.2647, allocations: 11.86 kB / 430.5 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.26e-05/0.2647, allocations: 0 / 430.5 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001133/0.2648, allocations: 36.84 kB / 430.5 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.2648, allocations: 7.984 kB / 430.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.2662, allocations: 1.559 MB / 432.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2662, allocations: 0 / 432.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/0.2665, allocations: 224.1 kB / 432.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.679e-05/0.2665, allocations: 8.141 kB / 432.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.2665, allocations: 12.06 kB / 432.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.554e-05/0.2666, allocations: 4 kB / 432.3 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.2666, allocations: 7.984 kB / 432.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.2666, allocations: 0 / 432.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.109e-05/0.2667, allocations: 118.2 kB / 432.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2667, allocations: 0 / 432.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000335/0.2671, allocations: 39.89 kB / 432.5 MB, free: 3.93 MB / 334.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.0005792/0.2676, allocations: 0.7483 MB / 433.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003727/0.268, allocations: 190.5 kB / 433.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.268, allocations: 0 / 433.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.2682, allocations: 162.5 kB / 433.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.2685, allocations: 14.45 kB / 433.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.2704, allocations: 1.711 MB / 435.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.783e-05/0.2705, allocations: 98.27 kB / 435.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.911e-05/0.2705, allocations: 4.438 kB / 435.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.837e-05/0.2706, allocations: 31.42 kB / 435.4 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2706, allocations: 0 / 435.4 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.3039, allocations: 3.455 MB / 438.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.59, allocations: 2.922 kB / 438.9 MB, free: 13.49 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.113321776967496]