Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008946/0.0008947, allocations: 175.1 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007569/0.000757, allocations: 98.34 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3194/0.3194, allocations: 43.56 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 12 kB / 432 MB, free: 5.617 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1044, allocations: 58.85 MB / 490.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0005193/0.105, allocations: 216.5 kB / 491 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005285/0.1055, allocations: 236.9 kB / 491.3 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.699e-05/0.1056, allocations: 0 / 491.3 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.312e-05/0.1056, allocations: 0 / 491.3 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.763e-06/0.1056, allocations: 0 / 491.3 MB, free: 10.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.1059, allocations: 51.89 kB / 491.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.143e-05/0.1059, allocations: 0 / 491.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.325e-05/0.106, allocations: 0 / 491.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.587e-05/0.106, allocations: 0 / 491.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.446e-05/0.106, allocations: 0 / 491.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.1061, allocations: 4 kB / 491.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.1062, allocations: 51.95 kB / 491.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.762e-06/0.1062, allocations: 0 / 491.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.012e-05/0.1062, allocations: 33.69 kB / 491.4 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.57e-05/0.1063, allocations: 39.94 kB / 491.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1063, allocations: 0 / 491.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1063, allocations: 7.938 kB / 491.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.1063, allocations: 0 / 491.4 MB, free: 10.04 MB / 378.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.0002718/0.1066, allocations: 353.3 kB / 491.8 MB, free: 9.641 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.1067, allocations: 8.031 kB / 491.8 MB, free: 9.633 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.518e-05/0.1067, allocations: 8.875 kB / 491.8 MB, free: 9.625 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.522e-05/0.1068, allocations: 160.4 kB / 492 MB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.1068, allocations: 4.375 kB / 492 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.1068, allocations: 384 / 492 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.441e-05/0.1069, allocations: 26.27 kB / 492 MB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1069, allocations: 12.17 kB / 492 MB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.1069, allocations: 3.938 kB / 492 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1069, allocations: 0 / 492 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.495e-05/0.1069, allocations: 0 / 492 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.1071, allocations: 145.7 kB / 492.1 MB, free: 9.188 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.891e-05/0.1071, allocations: 27.72 kB / 492.2 MB, free: 9.152 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.257e-05/0.1071, allocations: 4.859 kB / 492.2 MB, free: 9.145 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.1071, allocations: 0 / 492.2 MB, free: 9.145 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.1072, allocations: 68.31 kB / 492.2 MB, free: 9.062 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.1072, allocations: 0 / 492.2 MB, free: 9.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001452/0.1073, allocations: 67.25 kB / 492.3 MB, free: 8.984 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.1074, allocations: 81.05 kB / 492.4 MB, free: 8.887 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.17e-05/0.1074, allocations: 97.8 kB / 492.5 MB, free: 8.781 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.1075, allocations: 25.7 kB / 492.5 MB, free: 8.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.995e-05/0.1075, allocations: 80.14 kB / 492.6 MB, free: 8.668 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.1075, allocations: 4.125 kB / 492.6 MB, free: 8.664 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.1075, allocations: 0 / 492.6 MB, free: 8.664 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.621e-05/0.1076, allocations: 318.8 kB / 492.9 MB, free: 8.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.243e-06/0.1076, allocations: 4 kB / 492.9 MB, free: 8.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.608e-06/0.1076, allocations: 0 / 492.9 MB, free: 8.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.239e-05/0.1077, allocations: 60.27 kB / 493 MB, free: 8.266 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1077, allocations: 0 / 493 MB, free: 8.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.081e-05/0.1077, allocations: 63.41 kB / 493 MB, free: 8.191 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.1078, allocations: 37.78 kB / 493.1 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1078, allocations: 0 / 493.1 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1078, allocations: 11.86 kB / 493.1 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1078, allocations: 0 / 493.1 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1078, allocations: 0 / 493.1 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.1078, allocations: 4 kB / 493.1 MB, free: 8.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.1079, allocations: 0 / 493.1 MB, free: 8.133 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.962e-05/0.1079, allocations: 131.5 kB / 493.2 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.814e-06/0.1079, allocations: 4 kB / 493.2 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.288e-06/0.108, allocations: 11.06 kB / 493.2 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.108, allocations: 0 / 493.2 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.108, allocations: 3.984 kB / 493.2 MB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-06/0.108, allocations: 0 / 493.2 MB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.135e-05/0.1081, allocations: 145.7 kB / 493.4 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1081, allocations: 0 / 493.4 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.883e-06/0.1081, allocations: 4 kB / 493.4 MB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.1081, allocations: 0 / 493.4 MB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.1081, allocations: 3.938 kB / 493.4 MB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1081, allocations: 0 / 493.4 MB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1081, allocations: 0 / 493.4 MB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.078e-05/0.1082, allocations: 98.77 kB / 493.5 MB, free: 7.648 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.249e-05/0.1082, allocations: 77.11 kB / 493.5 MB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.1083, allocations: 3.938 kB / 493.6 MB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.014e-05/0.1083, allocations: 3.984 kB / 493.6 MB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.317e-05/0.1083, allocations: 4 kB / 493.6 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.1083, allocations: 0 / 493.6 MB, free: 7.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.528e-05/0.1083, allocations: 75.28 kB / 493.6 MB, free: 7.469 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1083, allocations: 4.031 kB / 493.6 MB, free: 7.465 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002061/0.1085, allocations: 24 kB / 493.7 MB, free: 7.441 MB / 378.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 (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.0004233/0.109, allocations: 271 kB / 493.9 MB, free: 7.203 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.755e-05/0.1091, allocations: 63.39 kB / 494 MB, free: 7.129 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1091, allocations: 4.062 kB / 494 MB, free: 7.125 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.88e-05/0.1091, allocations: 55.41 kB / 494 MB, free: 7.059 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.1092, allocations: 3.938 kB / 494 MB, free: 7.055 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001875/0.1094, allocations: 108.4 kB / 494.2 MB, free: 6.914 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.1096, allocations: 0.6731 MB / 494.8 MB, free: 6.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.524e-06/0.1096, allocations: 7.438 kB / 494.8 MB, free: 6.211 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1096, allocations: 0 / 494.8 MB, free: 6.211 MB / 378.7 MB Notification: Performance of Templates: time 0.002093/0.1117, allocations: 0.9597 MB / 495.8 MB, free: 5.25 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches