Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.0009765/0.0009765, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0008935/0.0008935, allocations: 168.7 kB / 24.91 MB, free: 9.145 MB / 18.57 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 0.9161/0.9161, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2679/0.2679, allocations: 34.26 MB / 296.1 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 325.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.482e-05, allocations: 5.719 kB / 325.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0009383/0.0009531, allocations: 0.5391 MB / 325.8 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002964/0.00125, allocations: 147.4 kB / 325.9 MB, free: 7.027 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.118e-05/0.001271, allocations: 0 / 325.9 MB, free: 7.027 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.355e-05/0.001284, allocations: 3.938 kB / 325.9 MB, free: 7.023 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.001475, allocations: 31.84 kB / 325.9 MB, free: 6.992 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.938e-06/0.001478, allocations: 4 kB / 325.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.729e-05/0.001526, allocations: 23.84 kB / 326 MB, free: 6.965 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.996e-05/0.001556, allocations: 3.938 kB / 326 MB, free: 6.961 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.958e-05/0.001585, allocations: 15.92 kB / 326 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.621e-05/0.001632, allocations: 7.984 kB / 326 MB, free: 6.938 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.028e-05/0.001642, allocations: 8 kB / 326 MB, free: 6.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.549e-05/0.001717, allocations: 47.89 kB / 326.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.176e-05/0.001729, allocations: 11.92 kB / 326.1 MB, free: 6.871 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.29e-05/0.001742, allocations: 8.609 kB / 326.1 MB, free: 6.863 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.618e-05/0.001828, allocations: 43.83 kB / 326.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.00183, allocations: 0 / 326.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.00183, allocations: 0 / 326.1 MB, free: 6.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.001833, allocations: 0 / 326.1 MB, free: 6.82 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000175/0.002008, allocations: 242.3 kB / 326.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.002042, allocations: 8.031 kB / 326.4 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.002097, allocations: 4.938 kB / 326.4 MB, free: 6.547 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.209e-05/0.002159, allocations: 113.8 kB / 326.5 MB, free: 6.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-06/0.002169, allocations: 4.375 kB / 326.5 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.002178, allocations: 4.375 kB / 326.5 MB, free: 6.402 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.31e-05/0.002241, allocations: 54.17 kB / 326.5 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.671e-06/0.002247, allocations: 192 / 326.5 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-06/0.002253, allocations: 384 / 326.5 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.002257, allocations: 4.375 kB / 326.5 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.055e-05/0.002308, allocations: 39.89 kB / 326.6 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.235e-05/0.00239, allocations: 76.97 kB / 326.7 MB, free: 6.211 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.46e-05/0.002465, allocations: 54.55 kB / 326.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.25e-05/0.002487, allocations: 20.86 kB / 326.7 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.002608, allocations: 28.41 kB / 326.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.002627, allocations: 38.56 kB / 326.8 MB, free: 6.051 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 7.71e-07/0.002628, allocations: 0 / 326.8 MB, free: 6.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001027/0.002731, allocations: 69.89 kB / 326.9 MB, free: 5.977 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.002757, allocations: 51.41 kB / 326.9 MB, free: 5.914 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.501e-05/0.002802, allocations: 106.7 kB / 327 MB, free: 5.797 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/0.002811, allocations: 33.83 kB / 327.1 MB, free: 5.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.742e-05/0.002828, allocations: 80.14 kB / 327.1 MB, free: 5.676 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.002859, allocations: 35.62 kB / 327.2 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.002885, allocations: 25.7 kB / 327.2 MB, free: 5.609 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.002951, allocations: 318.8 kB / 327.5 MB, free: 5.289 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.002964, allocations: 11.94 kB / 327.5 MB, free: 5.277 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.504e-05/0.002979, allocations: 12.38 kB / 327.5 MB, free: 5.266 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.07e-05/0.00302, allocations: 36.95 kB / 327.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.003022, allocations: 3.984 kB / 327.6 MB, free: 5.223 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 5.386e-05/0.003076, allocations: 61.62 kB / 327.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.003085, allocations: 4 kB / 327.6 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-06/0.003088, allocations: 4 kB / 327.6 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-06/0.003098, allocations: 0 / 327.6 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.594e-05/0.003154, allocations: 15.98 kB / 327.6 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.003157, allocations: 4 kB / 327.7 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.11e-05/0.003168, allocations: 0 / 327.7 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.003173, allocations: 4 kB / 327.7 MB, free: 5.125 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.931e-05/0.003222, allocations: 117.7 kB / 327.8 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.373e-06/0.00323, allocations: 8 kB / 327.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.226e-05/0.003312, allocations: 69.62 kB / 327.8 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.003314, allocations: 0 / 327.8 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.003315, allocations: 4 kB / 327.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.003317, allocations: 0 / 327.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.929e-05/0.003377, allocations: 85.78 kB / 327.9 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.003377, allocations: 0 / 327.9 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.92e-05/0.003407, allocations: 19.92 kB / 328 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.003409, allocations: 4 kB / 328 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.003416, allocations: 8 kB / 328 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.003417, allocations: 0 / 328 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.003417, allocations: 0 / 328 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.132e-05/0.003478, allocations: 96.92 kB / 328.1 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-06/0.003483, allocations: 3.938 kB / 328.1 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.292e-06/0.00349, allocations: 8 kB / 328.1 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-06/0.003498, allocations: 4 kB / 328.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.00351, allocations: 7.984 kB / 328.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.003512, allocations: 0 / 328.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.961e-06/0.003518, allocations: 4.859 kB / 328.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003518, allocations: 0 / 328.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001028/0.003621, allocations: 16 kB / 328.1 MB, free: 4.621 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 8.338e-05/0.003704, allocations: 92.33 kB / 328.2 MB, free: 4.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.014e-05/0.003764, allocations: 48.88 kB / 328.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.003766, allocations: 0 / 328.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.007e-05/0.003786, allocations: 28.78 kB / 328.3 MB, free: 4.441 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.114e-05/0.003837, allocations: 7.938 kB / 328.3 MB, free: 4.434 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002072/0.004044, allocations: 129.9 kB / 328.4 MB, free: 4.281 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.477e-05/0.004069, allocations: 59.34 kB / 328.5 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.835e-05/0.004088, allocations: 4 kB / 328.5 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.004118, allocations: 59.36 kB / 328.5 MB, free: 4.141 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.004118, allocations: 4 kB / 328.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of Templates: time 0.001805/0.005923, allocations: 0.7246 MB / 329.3 MB, free: 3.418 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7869719034060836]