Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.001341/0.001341, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001037/0.001037, allocations: 173.6 kB / 25.61 MB, free: 8.867 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.908/0.908, allocations: 177.1 MB / 206 MB, free: 4.492 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.1365/0.1365, allocations: 34.26 MB / 296.9 MB, free: 13.92 MB / 282.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.762e-05/1.884e-05, allocations: 6.25 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001456/0.001475, allocations: 0.4931 MB / 379.8 MB, free: 22.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.003065, allocations: 1.393 MB / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.82e-05/0.003093, allocations: 0 / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.976e-05/0.003113, allocations: 0 / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 2.622e-05/0.003139, allocations: 0 / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.0036, allocations: 219.9 kB / 381.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 3.984e-05/0.00364, allocations: 11.94 kB / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.657e-05/0.003676, allocations: 0 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.545e-05/0.003702, allocations: 7.984 kB / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.323e-05/0.003745, allocations: 0 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.036e-05/0.003755, allocations: 0 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.004023, allocations: 267.6 kB / 381.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.138e-05/0.004035, allocations: 0 / 381.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.101e-05/0.004046, allocations: 0 / 381.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.004218, allocations: 203.4 kB / 381.8 MB, free: 20.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.00422, allocations: 0 / 381.8 MB, free: 20.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.00422, allocations: 0 / 381.8 MB, free: 20.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.868e-06/0.004224, allocations: 0 / 381.8 MB, free: 20.82 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002039/0.004428, allocations: 364.2 kB / 382.2 MB, free: 20.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.702e-05/0.004455, allocations: 12.03 kB / 382.2 MB, free: 20.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.351e-05/0.004479, allocations: 0.9375 kB / 382.2 MB, free: 20.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.389e-05/0.004513, allocations: 104.6 kB / 382.3 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-06/0.004522, allocations: 8.375 kB / 382.3 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-06/0.004528, allocations: 4.312 kB / 382.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.359e-05/0.004592, allocations: 59.95 kB / 382.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.004599, allocations: 192 / 382.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.229e-06/0.004604, allocations: 384 / 382.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.004609, allocations: 7.938 kB / 382.4 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.276e-05/0.004622, allocations: 11.98 kB / 382.4 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.0048, allocations: 220.5 kB / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.521e-05/0.004825, allocations: 31 kB / 382.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.117e-06/0.004834, allocations: 7.688 kB / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-06/0.004839, allocations: 8.062 kB / 382.7 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.225e-05/0.004851, allocations: 33.39 kB / 382.7 MB, free: 19.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.004852, allocations: 0 / 382.7 MB, free: 19.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 8.798e-05/0.00494, allocations: 41.92 kB / 382.7 MB, free: 19.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.526e-05/0.004955, allocations: 55.41 kB / 382.8 MB, free: 19.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.342e-05/0.004989, allocations: 153.9 kB / 382.9 MB, free: 19.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.177e-06/0.004993, allocations: 25.7 kB / 383 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.603e-05/0.005019, allocations: 134.8 kB / 383.1 MB, free: 19.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-06/0.005022, allocations: 3.938 kB / 383.1 MB, free: 19.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.891e-05/0.005041, allocations: 23.62 kB / 383.1 MB, free: 19.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.151e-05/0.005072, allocations: 0.4923 MB / 383.6 MB, free: 18.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.23e-06/0.005078, allocations: 4 kB / 383.6 MB, free: 18.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.168e-05/0.005089, allocations: 23.06 kB / 383.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.997e-05/0.005109, allocations: 31.06 kB / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.005111, allocations: 0 / 383.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 3.905e-05/0.00515, allocations: 53.66 kB / 383.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.00516, allocations: 14.16 kB / 383.7 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.005164, allocations: 8 kB / 383.7 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.005171, allocations: 3.984 kB / 383.8 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.998e-05/0.005201, allocations: 4 kB / 383.8 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.005204, allocations: 3.984 kB / 383.8 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.104e-05/0.005215, allocations: 7.953 kB / 383.8 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.005219, allocations: 0 / 383.8 MB, free: 18.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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 2.956e-05/0.005249, allocations: 160.5 kB / 383.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.356e-05/0.005262, allocations: 0 / 383.9 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.537e-05/0.005328, allocations: 56.72 kB / 384 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.005329, allocations: 0 / 384 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-06/0.00533, allocations: 0 / 384 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.005333, allocations: 0 / 384 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.788e-05/0.00539, allocations: 93.27 kB / 384.1 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.005394, allocations: 4 kB / 384.1 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.005394, allocations: 0 / 384.1 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-07/0.005395, allocations: 0 / 384.1 MB, free: 18.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-06/0.005399, allocations: 4 kB / 384.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.005399, allocations: 0 / 384.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.0054, allocations: 7.969 kB / 384.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.881e-05/0.005439, allocations: 183.9 kB / 384.3 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.08e-06/0.005444, allocations: 0 / 384.3 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-06/0.00545, allocations: 0 / 384.3 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.133e-05/0.005482, allocations: 4 kB / 384.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.727e-06/0.00549, allocations: 3.938 kB / 384.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.005493, allocations: 3.938 kB / 384.3 MB, free: 18.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.179e-05/0.005505, allocations: 127.2 kB / 384.4 MB, free: 17.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005505, allocations: 0 / 384.4 MB, free: 17.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000193/0.005698, allocations: 36.06 kB / 384.4 MB, free: 17.95 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 0.0001577/0.005856, allocations: 155.1 kB / 384.6 MB, free: 17.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 4.628e-05/0.005902, allocations: 11.69 kB / 384.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.005903, allocations: 0 / 384.6 MB, free: 17.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.711e-05/0.00592, allocations: 37.39 kB / 384.6 MB, free: 17.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.006053, allocations: 11.94 kB / 384.6 MB, free: 17.71 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001189/0.006172, allocations: 100.2 kB / 384.7 MB, free: 17.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.604e-05/0.006188, allocations: 55.22 kB / 384.8 MB, free: 17.51 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.595e-05/0.006204, allocations: 8.25 kB / 384.8 MB, free: 17.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.575e-05/0.00623, allocations: 74.19 kB / 384.9 MB, free: 17.43 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.00623, allocations: 0 / 384.9 MB, free: 17.43 MB / 314.7 MB Notification: Performance of Templates: time 0.00217/0.0084, allocations: 1.259 MB / 386.1 MB, free: 16.18 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.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.86407512659207]