Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.0008986/0.0008986, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.00093/0.00093, allocations: 160.9 kB / 24.91 MB, free: 8.719 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.9003/0.9003, allocations: 177 MB / 205.2 MB, free: 5.035 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.2473/0.2473, allocations: 34.86 MB / 296.6 MB, free: 404 kB / 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: 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_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 325.9 MB, free: 7.145 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.381e-05/1.498e-05, allocations: 5.125 kB / 325.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0009516/0.0009666, allocations: 0.5206 MB / 326.4 MB, free: 6.617 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002309/0.001197, allocations: 151.4 kB / 326.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.066e-05/0.001218, allocations: 0 / 326.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.34e-05/0.001232, allocations: 0 / 326.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.001443, allocations: 43.77 kB / 326.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.995e-06/0.001446, allocations: 0 / 326.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.461e-05/0.001501, allocations: 28.47 kB / 326.6 MB, free: 6.398 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.243e-05/0.001533, allocations: 0 / 326.6 MB, free: 6.398 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.264e-05/0.001566, allocations: 19.92 kB / 326.7 MB, free: 6.379 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.335e-05/0.001619, allocations: 11.98 kB / 326.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.001631, allocations: 0 / 326.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.344e-05/0.001714, allocations: 47.89 kB / 326.7 MB, free: 6.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.285e-05/0.001727, allocations: 3.938 kB / 326.7 MB, free: 6.316 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.294e-05/0.00174, allocations: 15.97 kB / 326.7 MB, free: 6.301 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.762e-05/0.001827, allocations: 39.83 kB / 326.8 MB, free: 6.262 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.001829, allocations: 0 / 326.8 MB, free: 6.262 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.001829, allocations: 3.938 kB / 326.8 MB, free: 6.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.001833, allocations: 0 / 326.8 MB, free: 6.258 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.0001982/0.002031, allocations: 238.3 kB / 327 MB, free: 6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.002061, allocations: 8.031 kB / 327 MB, free: 5.992 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.414e-05/0.002085, allocations: 16.92 kB / 327 MB, free: 5.977 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.181e-05/0.002147, allocations: 109.8 kB / 327.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.255e-06/0.002155, allocations: 384 / 327.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-06/0.002164, allocations: 4.375 kB / 327.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.653e-05/0.00223, allocations: 54.17 kB / 327.2 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.07e-06/0.002235, allocations: 192 / 327.2 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.002244, allocations: 8.359 kB / 327.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-06/0.002247, allocations: 384 / 327.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.735e-05/0.002295, allocations: 31.91 kB / 327.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.81e-05/0.002373, allocations: 80.95 kB / 327.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.138e-05/0.002454, allocations: 63.34 kB / 327.4 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.159e-05/0.002476, allocations: 20.86 kB / 327.4 MB, free: 5.555 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/0.002602, allocations: 23.92 kB / 327.4 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.002621, allocations: 38.55 kB / 327.5 MB, free: 5.484 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 7.92e-07/0.002622, allocations: 0 / 327.5 MB, free: 5.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001051/0.002727, allocations: 71.59 kB / 327.5 MB, free: 5.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.002754, allocations: 51.41 kB / 327.6 MB, free: 5.348 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.562e-05/0.002799, allocations: 110.7 kB / 327.7 MB, free: 5.227 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.002809, allocations: 29.83 kB / 327.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.838e-05/0.002828, allocations: 80.14 kB / 327.8 MB, free: 5.109 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.008e-05/0.002858, allocations: 31.7 kB / 327.8 MB, free: 5.078 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.002884, allocations: 29.69 kB / 327.9 MB, free: 5.043 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.804e-05/0.002952, allocations: 314.8 kB / 328.2 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.002963, allocations: 8 kB / 328.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.162e-05/0.002975, allocations: 11.98 kB / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.653e-05/0.003011, allocations: 36.77 kB / 328.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.003013, allocations: 0 / 328.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 5.524e-05/0.003068, allocations: 66.92 kB / 328.3 MB, free: 4.598 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/0.003077, allocations: 4 kB / 328.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.003081, allocations: 4 kB / 328.3 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.00309, allocations: 0 / 328.3 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.271e-05/0.003153, allocations: 16 kB / 328.3 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.003156, allocations: 4 kB / 328.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.187e-05/0.003168, allocations: 0 / 328.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-06/0.003172, allocations: 0 / 328.3 MB, free: 4.57 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 5.144e-05/0.003223, allocations: 121.8 kB / 328.4 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.201e-06/0.003229, allocations: 4 kB / 328.4 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.765e-05/0.003317, allocations: 73.58 kB / 328.5 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.003319, allocations: 4 kB / 328.5 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.00332, allocations: 0 / 328.5 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.00333, allocations: 3.984 kB / 328.5 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.373e-05/0.003394, allocations: 85.78 kB / 328.6 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.003395, allocations: 0 / 328.6 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.075e-05/0.003426, allocations: 12 kB / 328.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.003427, allocations: 4 kB / 328.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-06/0.003432, allocations: 3.984 kB / 328.6 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-07/0.003432, allocations: 3.938 kB / 328.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.003434, allocations: 4 kB / 328.6 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.132e-05/0.003495, allocations: 97.73 kB / 328.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.66e-06/0.003501, allocations: 11.94 kB / 328.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.773e-06/0.003508, allocations: 0 / 328.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-06/0.003516, allocations: 0 / 328.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.394e-05/0.00353, allocations: 11.92 kB / 328.8 MB, free: 4.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.003534, allocations: 4 kB / 328.8 MB, free: 4.082 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.613e-06/0.00354, allocations: 4.859 kB / 328.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00354, allocations: 0 / 328.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of remove unused functions: time 9.863e-05/0.003639, allocations: 12 kB / 328.8 MB, free: 4.062 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.382e-05/0.003723, allocations: 96.33 kB / 328.9 MB, free: 3.961 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.93e-05/0.003782, allocations: 45.53 kB / 328.9 MB, free: 3.914 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.003784, allocations: 0 / 328.9 MB, free: 3.914 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.833e-05/0.003802, allocations: 25.83 kB / 328.9 MB, free: 3.887 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.783e-05/0.00385, allocations: 7.938 kB / 328.9 MB, free: 3.879 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002059/0.004056, allocations: 134.5 kB / 329.1 MB, free: 3.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.568e-05/0.004081, allocations: 59.34 kB / 329.1 MB, free: 3.645 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.127e-05/0.004103, allocations: 4 kB / 329.1 MB, free: 3.641 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.056e-05/0.004133, allocations: 55.38 kB / 329.2 MB, free: 3.586 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.004134, allocations: 4 kB / 329.2 MB, free: 3.582 MB / 298.7 MB Notification: Performance of Templates: time 0.001942/0.006076, allocations: 0.7232 MB / 329.9 MB, free: 2.863 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.5931484741158783]