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.001059/0.001059, allocations: 84.25 kB / 22.21 MB, free: 2.289 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.001072/0.001072, allocations: 166.9 kB / 25.61 MB, free: 8.445 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.9512/0.9512, allocations: 177 MB / 205.9 MB, free: 4.453 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.1662/0.1662, allocations: 34.87 MB / 297.4 MB, free: 13.32 MB / 282.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.774e-06/1.774e-06, allocations: 0 / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.109e-05, allocations: 7.016 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0013/0.001321, allocations: 0.5274 MB / 380.5 MB, free: 22.23 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002903/0.001611, allocations: 139.5 kB / 380.7 MB, free: 22.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.065e-05/0.001652, allocations: 4 kB / 380.7 MB, free: 22.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.359e-05/0.001665, allocations: 3.938 kB / 380.7 MB, free: 22.08 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.001896, allocations: 43.7 kB / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.924e-06/0.001898, allocations: 0 / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.669e-05/0.001955, allocations: 19.92 kB / 380.7 MB, free: 22.02 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.626e-05/0.002001, allocations: 11.97 kB / 380.7 MB, free: 22.01 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.248e-05/0.002033, allocations: 11.94 kB / 380.7 MB, free: 22 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.3e-05/0.002096, allocations: 7.984 kB / 380.8 MB, free: 21.99 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.078e-05/0.002107, allocations: 3.938 kB / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.002213, allocations: 51.92 kB / 380.8 MB, free: 21.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.323e-05/0.002226, allocations: 4 kB / 380.8 MB, free: 21.93 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.421e-05/0.00224, allocations: 7.938 kB / 380.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.002348, allocations: 51.86 kB / 380.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.002349, allocations: 0 / 380.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.4e-07/0.00235, allocations: 0 / 380.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.002354, allocations: 0 / 380.9 MB, free: 21.87 MB / 314.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.0002473/0.002601, allocations: 360.2 kB / 381.2 MB, free: 21.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.002632, allocations: 8.031 kB / 381.2 MB, free: 21.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.002659, allocations: 9.234 kB / 381.2 MB, free: 21.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.978e-05/0.002729, allocations: 120.4 kB / 381.4 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.002741, allocations: 8.375 kB / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-06/0.002747, allocations: 384 / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.557e-05/0.002823, allocations: 50.23 kB / 381.4 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.628e-06/0.002828, allocations: 4.188 kB / 381.4 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.002836, allocations: 384 / 381.4 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.002842, allocations: 4.375 kB / 381.4 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.648e-05/0.002908, allocations: 43.83 kB / 381.5 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.098e-05/0.002989, allocations: 113.2 kB / 381.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.509e-05/0.003084, allocations: 67.03 kB / 381.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.856e-05/0.003123, allocations: 23.66 kB / 381.7 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001268/0.00325, allocations: 28.27 kB / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.003264, allocations: 45.31 kB / 381.7 MB, free: 20.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.003265, allocations: 0 / 381.7 MB, free: 20.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001186/0.003383, allocations: 89.8 kB / 381.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.905e-05/0.003402, allocations: 51.41 kB / 381.9 MB, free: 20.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.755e-05/0.00344, allocations: 157.9 kB / 382 MB, free: 20.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-06/0.003447, allocations: 25.7 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.278e-05/0.003459, allocations: 126.9 kB / 382.2 MB, free: 20.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/0.003492, allocations: 31.7 kB / 382.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.458e-05/0.003516, allocations: 35.34 kB / 382.2 MB, free: 20.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.003565, allocations: 496.1 kB / 382.7 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.003579, allocations: 16.11 kB / 382.7 MB, free: 19.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.132e-05/0.00359, allocations: 8 kB / 382.8 MB, free: 19.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.883e-05/0.003629, allocations: 51.59 kB / 382.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.00363, allocations: 0 / 382.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 5.793e-05/0.003688, allocations: 69.62 kB / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.307e-06/0.003697, allocations: 4 kB / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.003701, allocations: 0 / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.003712, allocations: 0 / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.066e-05/0.003763, allocations: 19.98 kB / 382.9 MB, free: 19.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.003766, allocations: 3.984 kB / 382.9 MB, free: 19.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.387e-05/0.00378, allocations: 11.89 kB / 382.9 MB, free: 19.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.003785, allocations: 7.938 kB / 382.9 MB, free: 19.62 MB / 314.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.38e-05/0.003829, allocations: 160.6 kB / 383.1 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-06/0.003836, allocations: 7.938 kB / 383.1 MB, free: 19.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.65e-05/0.003932, allocations: 85.58 kB / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.003933, allocations: 0 / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.003935, allocations: 0 / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.00394, allocations: 3.984 kB / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.06e-05/0.00399, allocations: 117.1 kB / 383.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.003991, allocations: 0 / 383.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.924e-05/0.00402, allocations: 23.94 kB / 383.3 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.11e-07/0.004021, allocations: 0 / 383.3 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.531e-06/0.004026, allocations: 3.984 kB / 383.3 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.004027, allocations: 4 kB / 383.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.004028, allocations: 0 / 383.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.464e-05/0.004093, allocations: 112.3 kB / 383.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-06/0.004097, allocations: 7.953 kB / 383.4 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.055e-06/0.004105, allocations: 0 / 383.4 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-06/0.004115, allocations: 11.98 kB / 383.4 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.377e-05/0.004129, allocations: 3.984 kB / 383.4 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.004132, allocations: 4 kB / 383.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.351e-05/0.004145, allocations: 123.2 kB / 383.6 MB, free: 18.9 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004146, allocations: 0 / 383.6 MB, free: 18.9 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001287/0.004274, allocations: 23.92 kB / 383.6 MB, free: 18.88 MB / 314.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.414e-05/0.004358, allocations: 103.2 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.659e-05/0.004435, allocations: 52.16 kB / 383.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-06/0.004436, allocations: 0 / 383.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.778e-05/0.004454, allocations: 31.8 kB / 383.8 MB, free: 18.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.91e-05/0.004553, allocations: 10 kB / 383.8 MB, free: 18.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001891/0.004742, allocations: 148.3 kB / 383.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.151e-05/0.004763, allocations: 63.22 kB / 384 MB, free: 18.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.285e-05/0.004786, allocations: 11.84 kB / 384 MB, free: 18.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.754e-05/0.004814, allocations: 70.2 kB / 384.1 MB, free: 18.34 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.004815, allocations: 4 kB / 384.1 MB, free: 18.33 MB / 314.7 MB Notification: Performance of Templates: time 0.002051/0.006865, allocations: 0.7285 MB / 384.8 MB, free: 17.61 MB / 314.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: 3.004772402346134]