Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.0009921/0.0009921, allocations: 80.2 kB / 20.65 MB, free: 3.844 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.0009739/0.0009739, allocations: 173 kB / 24.06 MB, free: 452 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.965/0.965, allocations: 158.6 MB / 185.9 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1265/0.1265, allocations: 32.37 MB / 270.7 MB, free: 14.54 MB / 266.7 MB " [Timeout remaining time 180] 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 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 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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 348.1 MB, free: 9.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.052e-05/2.193e-05, allocations: 6.312 kB / 348.1 MB, free: 9.199 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0009623/0.0009843, allocations: 0.519 MB / 348.6 MB, free: 8.688 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.002231, allocations: 1.378 MB / 350 MB, free: 7.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.212e-05/0.002263, allocations: 0 / 350 MB, free: 7.285 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.636e-05/0.002279, allocations: 0 / 350 MB, free: 7.285 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.116e-05/0.002311, allocations: 7.938 kB / 350 MB, free: 7.277 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.002814, allocations: 215.9 kB / 350.2 MB, free: 7.066 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.462e-05/0.002859, allocations: 11.98 kB / 350.2 MB, free: 7.055 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.526e-05/0.002894, allocations: 0 / 350.2 MB, free: 7.055 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.086e-05/0.002925, allocations: 4 kB / 350.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.335e-05/0.002978, allocations: 3.984 kB / 350.2 MB, free: 7.047 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.002994, allocations: 4 kB / 350.2 MB, free: 7.043 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003184/0.003313, allocations: 255.6 kB / 350.5 MB, free: 6.793 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.214e-05/0.003325, allocations: 3.984 kB / 350.5 MB, free: 6.789 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.209e-05/0.003337, allocations: 3.938 kB / 350.5 MB, free: 6.785 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.003516, allocations: 199.5 kB / 350.7 MB, free: 6.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.003519, allocations: 0 / 350.7 MB, free: 6.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00352, allocations: 0 / 350.7 MB, free: 6.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.003524, allocations: 0 / 350.7 MB, free: 6.59 MB / 282.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.0002444/0.003768, allocations: 364.2 kB / 351 MB, free: 6.199 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.003806, allocations: 12.03 kB / 351.1 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.003831, allocations: 5.234 kB / 351.1 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.554e-05/0.003887, allocations: 104.6 kB / 351.2 MB, free: 6.055 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.003896, allocations: 384 / 351.2 MB, free: 6.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-06/0.003902, allocations: 4.375 kB / 351.2 MB, free: 6.051 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.934e-05/0.003972, allocations: 59.97 kB / 351.2 MB, free: 5.98 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.003978, allocations: 8.125 kB / 351.2 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.003985, allocations: 4.359 kB / 351.2 MB, free: 5.969 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.00399, allocations: 7.922 kB / 351.2 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.605e-06/0.003998, allocations: 0 / 351.2 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.107e-05/0.004069, allocations: 93.27 kB / 351.3 MB, free: 5.844 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.752e-05/0.004096, allocations: 23.06 kB / 351.4 MB, free: 5.809 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.183e-05/0.004108, allocations: 11.78 kB / 351.4 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-06/0.004115, allocations: 0 / 351.4 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.659e-05/0.004131, allocations: 33.39 kB / 351.4 MB, free: 5.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.61e-07/0.004132, allocations: 4 kB / 351.4 MB, free: 5.746 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 9.329e-05/0.004225, allocations: 45.62 kB / 351.5 MB, free: 5.695 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.55e-05/0.004241, allocations: 51.41 kB / 351.5 MB, free: 5.633 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.188e-05/0.004282, allocations: 157.9 kB / 351.7 MB, free: 5.461 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-06/0.004287, allocations: 25.7 kB / 351.7 MB, free: 5.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.502e-05/0.004302, allocations: 130.9 kB / 351.8 MB, free: 5.297 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.004322, allocations: 0 / 351.8 MB, free: 5.297 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/0.004341, allocations: 23.31 kB / 351.8 MB, free: 5.266 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.477e-05/0.004385, allocations: 496.1 kB / 352.3 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.809e-06/0.00439, allocations: 256 / 352.3 MB, free: 4.77 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.092e-06/0.004396, allocations: 4 kB / 352.3 MB, free: 4.766 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.676e-05/0.004413, allocations: 15.62 kB / 352.3 MB, free: 4.746 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.004415, allocations: 0 / 352.3 MB, free: 4.746 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.111e-05/0.004446, allocations: 37.7 kB / 352.4 MB, free: 4.703 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.004457, allocations: 4 kB / 352.4 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.004461, allocations: 4 kB / 352.4 MB, free: 4.695 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.004472, allocations: 0 / 352.4 MB, free: 4.695 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.175e-05/0.004523, allocations: 7.984 kB / 352.4 MB, free: 4.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.465e-06/0.004526, allocations: 0 / 352.4 MB, free: 4.688 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.047e-05/0.004536, allocations: 11.98 kB / 352.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.004541, allocations: 0 / 352.4 MB, free: 4.676 MB / 282.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 (1): * Single equations (assignments): 1 * 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 3.981e-05/0.004581, allocations: 156.6 kB / 352.6 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-06/0.004585, allocations: 0 / 352.6 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.526e-05/0.004671, allocations: 44.78 kB / 352.6 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.004673, allocations: 0 / 352.6 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.004675, allocations: 0 / 352.6 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.004678, allocations: 7.969 kB / 352.6 MB, free: 4.453 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.501e-05/0.004723, allocations: 97.27 kB / 352.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.004727, allocations: 0 / 352.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.004728, allocations: 0 / 352.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.00473, allocations: 0 / 352.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-06/0.004734, allocations: 4 kB / 352.7 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.004735, allocations: 0 / 352.7 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.004736, allocations: 0 / 352.7 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.956e-05/0.004776, allocations: 76.31 kB / 352.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-06/0.004782, allocations: 0 / 352.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-06/0.004788, allocations: 0 / 352.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.736e-05/0.004835, allocations: 8.031 kB / 352.8 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.141e-05/0.004847, allocations: 3.984 kB / 352.8 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.00485, allocations: 0 / 352.8 MB, free: 4.219 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.739e-05/0.004867, allocations: 127.2 kB / 352.9 MB, free: 4.094 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004867, allocations: 0 / 352.9 MB, free: 4.094 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001627/0.00503, allocations: 39.94 kB / 353 MB, free: 4.055 MB / 282.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.0001648/0.005195, allocations: 147.1 kB / 353.1 MB, free: 3.902 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.079e-05/0.005245, allocations: 15.62 kB / 353.1 MB, free: 3.883 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.005247, allocations: 4.156 kB / 353.1 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.12e-05/0.005268, allocations: 37.39 kB / 353.2 MB, free: 3.832 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001026/0.005371, allocations: 4 kB / 353.2 MB, free: 3.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001333/0.005504, allocations: 97.5 kB / 353.3 MB, free: 3.707 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.486e-05/0.005519, allocations: 55.36 kB / 353.3 MB, free: 3.633 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.184e-05/0.005531, allocations: 0 / 353.3 MB, free: 3.633 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.035e-05/0.005561, allocations: 74.19 kB / 353.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of SimCode: time 4.41e-07/0.005562, allocations: 0 / 353.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of Templates: time 0.002359/0.007921, allocations: 1.26 MB / 354.6 MB, free: 2.297 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.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.8331506229005754]