Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009331/0.0009332, allocations: 101.3 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 185.7 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 223.3 MB / 241.9 MB, free: 316 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2231/0.2231, allocations: 44.25 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003731, allocations: 11.94 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1183, allocations: 61.92 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0005528/0.1188, allocations: 205.2 kB / 471.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005602/0.1194, allocations: 230.8 kB / 472 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.455e-05/0.1195, allocations: 0 / 472 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.746e-06/0.1195, allocations: 0 / 472 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.1195, allocations: 4 kB / 472 MB, free: 13.28 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454: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.0003158/0.1198, allocations: 47.88 kB / 472.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.34e-05/0.1199, allocations: 3.938 kB / 472.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.247e-05/0.1199, allocations: 0 / 472.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.39e-05/0.1199, allocations: 0 / 472.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.188e-05/0.12, allocations: 8 kB / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.12, allocations: 0 / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.1201, allocations: 55.94 kB / 472.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.968e-06/0.1201, allocations: 3.938 kB / 472.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.902e-05/0.1202, allocations: 29.7 kB / 472.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001195/0.1203, allocations: 35.95 kB / 472.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1203, allocations: 0 / 472.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1203, allocations: 0 / 472.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.016e-06/0.1203, allocations: 0 / 472.2 MB, free: 13.09 MB / 350.1 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.0003022/0.1206, allocations: 349.1 kB / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.1207, allocations: 12.03 kB / 472.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.1207, allocations: 0 / 472.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1208, allocations: 167.1 kB / 472.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1208, allocations: 11.92 kB / 472.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.1209, allocations: 0 / 472.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.063e-05/0.1209, allocations: 29.66 kB / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.121, allocations: 0 / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.121, allocations: 4 kB / 472.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.121, allocations: 0 / 472.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.932e-05/0.121, allocations: 7.875 kB / 472.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.1212, allocations: 145.7 kB / 472.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.517e-05/0.1212, allocations: 22.59 kB / 472.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.554e-05/0.1212, allocations: 8.859 kB / 472.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.1212, allocations: 0 / 472.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/0.1213, allocations: 64.28 kB / 473 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1213, allocations: 0 / 473 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001517/0.1215, allocations: 67.33 kB / 473.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.1215, allocations: 81.11 kB / 473.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.82e-05/0.1216, allocations: 89.86 kB / 473.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.1216, allocations: 25.7 kB / 473.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.67e-05/0.1216, allocations: 84.14 kB / 473.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.1216, allocations: 0 / 473.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.1217, allocations: 0 / 473.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1218, allocations: 310.8 kB / 473.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.1218, allocations: 4.125 kB / 473.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.1218, allocations: 4 kB / 473.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.647e-05/0.1218, allocations: 25.7 kB / 473.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1218, allocations: 0 / 473.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.033e-05/0.1219, allocations: 67.33 kB / 473.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.122, allocations: 33.7 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.122, allocations: 0 / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.122, allocations: 3.953 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.122, allocations: 0 / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.122, allocations: 0 / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.722e-05/0.122, allocations: 8.094 kB / 473.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.122, allocations: 0 / 473.8 MB, free: 11.24 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.753e-05/0.1221, allocations: 140.1 kB / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-06/0.1221, allocations: 0 / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.177e-05/0.1222, allocations: 7.078 kB / 473.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.1222, allocations: 7.891 kB / 473.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1222, allocations: 4 kB / 473.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.1222, allocations: 4 kB / 473.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.237e-05/0.1223, allocations: 141.7 kB / 474.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1223, allocations: 4 kB / 474.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-06/0.1223, allocations: 3.984 kB / 474.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1223, allocations: 0 / 474.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.1223, allocations: 0 / 474.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1223, allocations: 4 kB / 474.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1223, allocations: 3.953 kB / 474.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.194e-05/0.1224, allocations: 86.78 kB / 474.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.1225, allocations: 85.09 kB / 474.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.1225, allocations: 7.969 kB / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.1225, allocations: 0 / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.519e-05/0.1225, allocations: 4 kB / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-06/0.1225, allocations: 3.953 kB / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.554e-05/0.1226, allocations: 75.28 kB / 474.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1226, allocations: 4 kB / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000228/0.1228, allocations: 19.98 kB / 474.4 MB, free: 10.54 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005054/0.1233, allocations: 289.4 kB / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.622e-05/0.1234, allocations: 63.41 kB / 474.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1234, allocations: 0 / 474.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.893e-05/0.1235, allocations: 55.41 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001172/0.1236, allocations: 2.344 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001754/0.1238, allocations: 94.53 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.1241, allocations: 0.6692 MB / 475.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.1241, allocations: 0 / 475.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.538e-06/0.1241, allocations: 7.438 kB / 475.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1241, allocations: 4.125 kB / 475.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of Templates: time 0.002947/0.1271, allocations: 0.7612 MB / 476.3 MB, free: 8.586 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches