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.0009262/0.0009262, allocations: 80.8 kB / 21.5 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.0009477/0.0009477, allocations: 168.9 kB / 24.91 MB, free: 9.203 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.9652/0.9652, allocations: 177.1 MB / 205.3 MB, free: 5.461 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.2508/0.2508, allocations: 34.26 MB / 296.1 MB, free: 0.7266 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.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.082e-06/1.082e-06, allocations: 0 / 325.2 MB, free: 7.734 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.336e-05/2.445e-05, allocations: 8.25 kB / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00138/0.001404, allocations: 0.5075 MB / 325.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.002898, allocations: 1.393 MB / 327.1 MB, free: 5.805 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.297e-05/0.002921, allocations: 0 / 327.1 MB, free: 5.805 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.178e-05/0.002933, allocations: 0 / 327.1 MB, free: 5.805 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.671e-05/0.00296, allocations: 3.938 kB / 327.1 MB, free: 5.801 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005514/0.003511, allocations: 208 kB / 327.3 MB, free: 5.598 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.524e-05/0.003556, allocations: 11.97 kB / 327.3 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.219e-05/0.003588, allocations: 4 kB / 327.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.946e-05/0.003618, allocations: 8 kB / 327.4 MB, free: 5.574 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.551e-05/0.003663, allocations: 7.984 kB / 327.4 MB, free: 5.566 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.003675, allocations: 0 / 327.4 MB, free: 5.566 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003186/0.003994, allocations: 255.6 kB / 327.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.004007, allocations: 7.938 kB / 327.6 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.188e-05/0.004019, allocations: 4.562 kB / 327.6 MB, free: 5.305 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.004215, allocations: 191.5 kB / 327.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.004217, allocations: 0 / 327.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.004218, allocations: 0 / 327.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.616e-06/0.004222, allocations: 0 / 327.8 MB, free: 5.117 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002226/0.004445, allocations: 236.5 kB / 328 MB, free: 4.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.004475, allocations: 12.03 kB / 328.1 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.364e-05/0.004498, allocations: 4.938 kB / 328.1 MB, free: 4.848 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.004684, allocations: 109.7 kB / 328.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-06/0.004693, allocations: 384 / 328.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.004702, allocations: 8.359 kB / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.642e-05/0.004778, allocations: 63.95 kB / 328.2 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.004786, allocations: 192 / 328.2 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.004793, allocations: 384 / 328.2 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.004799, allocations: 3.938 kB / 328.2 MB, free: 4.629 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.411e-05/0.004813, allocations: 7.984 kB / 328.2 MB, free: 4.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002042/0.005017, allocations: 149.7 kB / 328.4 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.035e-05/0.005047, allocations: 22.52 kB / 328.4 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.927e-06/0.005056, allocations: 4.859 kB / 328.4 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-06/0.005061, allocations: 0 / 328.4 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.005081, allocations: 34.62 kB / 328.5 MB, free: 4.379 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.81e-07/0.005081, allocations: 0 / 328.5 MB, free: 4.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 8.518e-05/0.005166, allocations: 33.64 kB / 328.5 MB, free: 4.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.005192, allocations: 55.34 kB / 328.5 MB, free: 4.273 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.023e-05/0.005242, allocations: 111 kB / 328.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.005253, allocations: 25.95 kB / 328.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.005289, allocations: 88.08 kB / 328.8 MB, free: 4.031 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.875e-06/0.005297, allocations: 7.953 kB / 328.8 MB, free: 4.023 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.452e-05/0.005322, allocations: 17.72 kB / 328.8 MB, free: 4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.005393, allocations: 314.8 kB / 329.1 MB, free: 3.684 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.213e-06/0.0054, allocations: 3.984 kB / 329.1 MB, free: 3.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.769e-05/0.005418, allocations: 18.58 kB / 329.1 MB, free: 3.652 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.545e-05/0.005443, allocations: 26.5 kB / 329.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.005445, allocations: 0 / 329.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.366e-05/0.005489, allocations: 53.62 kB / 329.2 MB, free: 3.559 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.0055, allocations: 4 kB / 329.2 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.005505, allocations: 3.938 kB / 329.2 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.005514, allocations: 4 kB / 329.2 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.479e-05/0.005549, allocations: 7.984 kB / 329.2 MB, free: 3.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.005552, allocations: 0 / 329.2 MB, free: 3.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.319e-05/0.005565, allocations: 7.938 kB / 329.2 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-06/0.005569, allocations: 0 / 329.2 MB, free: 3.531 MB / 298.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 4.101e-05/0.00561, allocations: 105.9 kB / 329.3 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.005624, allocations: 8 kB / 329.3 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.76e-05/0.005701, allocations: 44.72 kB / 329.4 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.005703, allocations: 0 / 329.4 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.005705, allocations: 0 / 329.4 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.005707, allocations: 0 / 329.4 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.796e-05/0.005785, allocations: 65.91 kB / 329.4 MB, free: 3.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.00579, allocations: 4 kB / 329.4 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.005791, allocations: 0 / 329.4 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.51e-07/0.005791, allocations: 4.125 kB / 329.4 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-06/0.005796, allocations: 4 kB / 329.5 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.005797, allocations: 0 / 329.5 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.005799, allocations: 7.922 kB / 329.5 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.571e-05/0.005865, allocations: 123.5 kB / 329.6 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-06/0.005872, allocations: 7.938 kB / 329.6 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.483e-06/0.005879, allocations: 0 / 329.6 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.664e-05/0.005915, allocations: 0 / 329.6 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-06/0.005925, allocations: 7.922 kB / 329.6 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.00593, allocations: 4 kB / 329.6 MB, free: 3.105 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.426e-06/0.005939, allocations: 8.891 kB / 329.6 MB, free: 3.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005939, allocations: 3.938 kB / 329.6 MB, free: 3.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001975/0.006136, allocations: 39.94 kB / 329.7 MB, free: 3.051 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 (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.0001826/0.006319, allocations: 132.3 kB / 329.8 MB, free: 2.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.047e-05/0.006369, allocations: 9.359 kB / 329.8 MB, free: 2.898 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.006374, allocations: 0 / 329.8 MB, free: 2.898 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.486e-05/0.006398, allocations: 42.5 kB / 329.8 MB, free: 2.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.649e-05/0.006495, allocations: 4.344 kB / 329.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001602/0.006655, allocations: 98.38 kB / 329.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.642e-05/0.006682, allocations: 51.36 kB / 330 MB, free: 2.652 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.863e-05/0.0067, allocations: 4 kB / 330 MB, free: 2.648 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.006736, allocations: 55.36 kB / 330 MB, free: 2.594 MB / 298.7 MB Notification: Performance of SimCode: time 6.32e-07/0.006736, allocations: 0 / 330 MB, free: 2.594 MB / 298.7 MB Notification: Performance of Templates: time 0.002709/0.009445, allocations: 1.253 MB / 331.3 MB, free: 1.352 MB / 298.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.8292026980780065]