Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008527/0.0008527, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008956/0.0008956, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9054/0.9054, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2414/0.2414, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.729e-05/1.908e-05, allocations: 6.281 kB / 442.1 MB, free: 1.586 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00103/0.001049, allocations: 499.8 kB / 442.6 MB, free: 1.102 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004724/0.001521, allocations: 259.3 kB / 442.9 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.916e-05/0.00154, allocations: 0 / 442.9 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.001554, allocations: 0 / 442.9 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.505e-06/0.001561, allocations: 0 / 442.9 MB, free: 0.8477 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.001878, allocations: 51.75 kB / 442.9 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.199e-05/0.00193, allocations: 4 kB / 442.9 MB, free: 0.793 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.813e-05/0.001968, allocations: 0 / 442.9 MB, free: 0.793 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.779e-05/0.001996, allocations: 0 / 442.9 MB, free: 0.793 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.399e-05/0.00202, allocations: 3.938 kB / 442.9 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.307e-06/0.00203, allocations: 11.94 kB / 442.9 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.002153, allocations: 71.86 kB / 443 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-06/0.00216, allocations: 0 / 443 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.938e-05/0.00218, allocations: 0 / 443 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.002292, allocations: 59.86 kB / 443.1 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.002294, allocations: 0 / 443.1 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.002295, allocations: 0 / 443.1 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.002299, allocations: 4 kB / 443.1 MB, free: 0.6445 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002493/0.002548, allocations: 280 kB / 443.3 MB, free: 340 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.002585, allocations: 8.031 kB / 443.3 MB, free: 332 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.652e-05/0.002612, allocations: 30.75 kB / 443.4 MB, free: 292 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.31e-05/0.002635, allocations: 12.88 kB / 443.4 MB, free: 280 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.411e-05/0.002689, allocations: 105.8 kB / 443.5 MB, free: 148 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.002698, allocations: 4.312 kB / 443.5 MB, free: 144 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-06/0.002704, allocations: 384 / 443.5 MB, free: 144 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.055e-05/0.002785, allocations: 55.97 kB / 443.6 MB, free: 76 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.934e-06/0.002793, allocations: 192 / 443.6 MB, free: 76 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.0028, allocations: 384 / 443.6 MB, free: 76 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.002805, allocations: 4.125 kB / 443.6 MB, free: 72 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.28e-05/0.002828, allocations: 33.64 kB / 443.6 MB, free: 32 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1692/0.172, allocations: 116.6 kB / 443.7 MB, free: 44.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.609e-05/0.1721, allocations: 51.3 kB / 443.8 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.576e-05/0.1721, allocations: 33.53 kB / 443.8 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-06/0.1721, allocations: 0 / 443.8 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1722, allocations: 56.27 kB / 443.8 MB, free: 43.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.974e-06/0.1722, allocations: 0 / 443.8 MB, free: 43.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001592/0.1723, allocations: 121 kB / 444 MB, free: 43.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.1723, allocations: 84.64 kB / 444 MB, free: 43.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.373e-05/0.1724, allocations: 93.12 kB / 444.1 MB, free: 43.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-06/0.1724, allocations: 25.7 kB / 444.2 MB, free: 43.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.347e-06/0.1724, allocations: 88.64 kB / 444.2 MB, free: 43.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.1724, allocations: 3.797 kB / 444.2 MB, free: 43.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.1724, allocations: 12.62 kB / 444.3 MB, free: 43.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.85e-05/0.1724, allocations: 312.7 kB / 444.6 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.117e-05/0.1725, allocations: 28.7 kB / 444.6 MB, free: 43.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.846e-06/0.1725, allocations: 27.8 kB / 444.6 MB, free: 43.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.949e-05/0.1725, allocations: 68.28 kB / 444.7 MB, free: 43.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1725, allocations: 0 / 444.7 MB, free: 43.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.129e-05/0.1725, allocations: 85.77 kB / 444.8 MB, free: 42.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.1726, allocations: 34.47 kB / 444.8 MB, free: 42.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1726, allocations: 7.812 kB / 444.8 MB, free: 42.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1726, allocations: 3 kB / 444.8 MB, free: 42.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.1726, allocations: 6.188 kB / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1726, allocations: 0 / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.564e-05/0.1726, allocations: 0 / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/0.1726, allocations: 0 / 444.8 MB, free: 42.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.1727, allocations: 137.7 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.539e-06/0.1727, allocations: 3.562 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.097e-05/0.1727, allocations: 8.609 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1727, allocations: 0 / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1727, allocations: 3.938 kB / 445 MB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1727, allocations: 0 / 445 MB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.787e-05/0.1727, allocations: 115.7 kB / 445.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.1727, allocations: 2.625 kB / 445.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.91e-07/0.1727, allocations: 0 / 445.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.11e-07/0.1727, allocations: 7.156 kB / 445.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.1727, allocations: 6.125 kB / 445.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.1727, allocations: 0 / 445.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1727, allocations: 3.938 kB / 445.1 MB, free: 42.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.64e-05/0.1728, allocations: 119.2 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-06/0.1728, allocations: 2.719 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.08e-05/0.1728, allocations: 0 / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.701e-06/0.1728, allocations: 2.688 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.141e-05/0.1728, allocations: 6.594 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.1728, allocations: 2.062 kB / 445.2 MB, free: 42.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.935e-06/0.1728, allocations: 79.03 kB / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1728, allocations: 0 / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001656/0.173, allocations: 25.73 kB / 445.3 MB, free: 42.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005659/0.1736, allocations: 0.8317 MB / 446.2 MB, free: 41.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.897e-05/0.1737, allocations: 109.8 kB / 446.3 MB, free: 41.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.1737, allocations: 3.938 kB / 446.3 MB, free: 41.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.686e-05/0.1737, allocations: 91.22 kB / 446.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001031/0.1738, allocations: 6.844 kB / 446.4 MB, free: 41.49 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002547/0.174, allocations: 140.3 kB / 446.5 MB, free: 41.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.329e-05/0.1741, allocations: 54.2 kB / 446.6 MB, free: 41.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.1741, allocations: 3.938 kB / 446.6 MB, free: 41.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.501e-05/0.1741, allocations: 8.5 kB / 446.6 MB, free: 41.26 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1741, allocations: 0 / 446.6 MB, free: 41.26 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0157/0.1898, allocations: 2.295 MB / 448.9 MB, free: 40.26 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.82/7.01, allocations: 17.84 kB / 448.9 MB, free: 40.25 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.csv: Error: Error opening file: ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 8.997477574273944]