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.001362/0.001362, allocations: 82.67 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001647/0.001647, allocations: 162.8 kB / 23.96 MB, free: 4.145 MB / 14.72 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 1.459/1.459, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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.2151/0.2151, allocations: 34.28 MB / 295 MB, free: 14.58 MB / 286.1 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.593e-06/1.593e-06, allocations: 0 / 442.6 MB, free: 5.438 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.684e-05/2.843e-05, allocations: 6.281 kB / 442.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001524/0.001553, allocations: 0.4934 MB / 443.1 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.003535, allocations: 1.354 MB / 444.5 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.442e-05/0.00356, allocations: 0 / 444.5 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.003572, allocations: 0 / 444.5 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 3.938e-05/0.003612, allocations: 3.938 kB / 444.5 MB, free: 3.559 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007124/0.004324, allocations: 218.3 kB / 444.7 MB, free: 3.352 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.348e-05/0.004368, allocations: 8 kB / 444.7 MB, free: 3.344 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.328e-05/0.004411, allocations: 11.98 kB / 444.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.399e-05/0.004445, allocations: 4 kB / 444.7 MB, free: 3.328 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.781e-05/0.004493, allocations: 4 kB / 444.7 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.004506, allocations: 0 / 444.7 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005065/0.005013, allocations: 263.5 kB / 445 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.005026, allocations: 0 / 445 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.002e-05/0.005046, allocations: 7.984 kB / 445 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.005358, allocations: 191.5 kB / 445.2 MB, free: 2.871 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.00536, allocations: 0 / 445.2 MB, free: 2.871 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.005361, allocations: 0 / 445.2 MB, free: 2.871 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.005365, allocations: 0 / 445.2 MB, free: 2.871 MB / 366.1 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.0003922/0.005757, allocations: 266.3 kB / 445.5 MB, free: 2.582 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.005796, allocations: 8.031 kB / 445.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.005829, allocations: 4.922 kB / 445.5 MB, free: 2.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.43e-05/0.005923, allocations: 109.7 kB / 445.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.005935, allocations: 384 / 445.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-06/0.005943, allocations: 384 / 445.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001433/0.006086, allocations: 63.95 kB / 445.6 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.006095, allocations: 4.188 kB / 445.6 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.006105, allocations: 384 / 445.6 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.006115, allocations: 3.938 kB / 445.7 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.48e-05/0.00615, allocations: 15.94 kB / 445.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003327/0.006483, allocations: 192.5 kB / 445.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.184e-05/0.006535, allocations: 18.58 kB / 445.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.006551, allocations: 4.859 kB / 445.9 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.006562, allocations: 4.031 kB / 445.9 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.00659, allocations: 34.5 kB / 445.9 MB, free: 2.039 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.006591, allocations: 0 / 445.9 MB, free: 2.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001433/0.006735, allocations: 45.64 kB / 446 MB, free: 1.988 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.006771, allocations: 51.41 kB / 446 MB, free: 1.926 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.538e-05/0.006856, allocations: 97.98 kB / 446.1 MB, free: 1.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.006877, allocations: 29.69 kB / 446.1 MB, free: 1.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.876e-05/0.006926, allocations: 84.09 kB / 446.2 MB, free: 1.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.006936, allocations: 8 kB / 446.2 MB, free: 1.691 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.95e-05/0.006966, allocations: 9.719 kB / 446.2 MB, free: 1.676 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.007107, allocations: 314.8 kB / 446.5 MB, free: 1.359 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.146e-05/0.007119, allocations: 0 / 446.5 MB, free: 1.359 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.384e-05/0.007153, allocations: 26.56 kB / 446.6 MB, free: 1.324 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.469e-05/0.007197, allocations: 30.64 kB / 446.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.007199, allocations: 0 / 446.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.645e-05/0.007285, allocations: 57.61 kB / 446.7 MB, free: 1.223 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.007299, allocations: 8 kB / 446.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.007304, allocations: 0 / 446.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.007319, allocations: 3.984 kB / 446.7 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.853e-05/0.007368, allocations: 4 kB / 446.7 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.007375, allocations: 4 kB / 446.7 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.007391, allocations: 0 / 446.7 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.007397, allocations: 3.938 kB / 446.7 MB, free: 1.199 MB / 366.1 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 8.504e-05/0.007482, allocations: 118.6 kB / 446.8 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.758e-05/0.007509, allocations: 3.938 kB / 446.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.007615, allocations: 44.84 kB / 446.8 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.007617, allocations: 0 / 446.8 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.00762, allocations: 0 / 446.8 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.007626, allocations: 4 kB / 446.8 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.007752, allocations: 101.3 kB / 446.9 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.007756, allocations: 4.031 kB / 446.9 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.007759, allocations: 7.938 kB / 447 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.00776, allocations: 0 / 447 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.007767, allocations: 3.938 kB / 447 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.007768, allocations: 0 / 447 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.007769, allocations: 0 / 447 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000105/0.007874, allocations: 131.5 kB / 447.1 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-06/0.007881, allocations: 4 kB / 447.1 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.007895, allocations: 3.938 kB / 447.1 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.744e-05/0.007952, allocations: 7.938 kB / 447.1 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.096e-05/0.007963, allocations: 32 / 447.1 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.007969, allocations: 8 kB / 447.1 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.102e-05/0.00801, allocations: 75.28 kB / 447.2 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.00801, allocations: 0 / 447.2 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002997/0.008309, allocations: 43.92 kB / 447.2 MB, free: 0.5859 MB / 366.1 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.0003094/0.008619, allocations: 147.1 kB / 447.4 MB, free: 440 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.141e-05/0.00869, allocations: 15.92 kB / 447.4 MB, free: 424 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.008692, allocations: 0 / 447.4 MB, free: 424 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.658e-05/0.008728, allocations: 29.98 kB / 447.4 MB, free: 388 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.00894, allocations: 8.062 kB / 447.4 MB, free: 380 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002271/0.009167, allocations: 84.86 kB / 447.5 MB, free: 268 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.755e-05/0.009225, allocations: 59.34 kB / 447.6 MB, free: 188 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.921e-05/0.009244, allocations: 0 / 447.6 MB, free: 188 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.705e-05/0.009261, allocations: 8.5 kB / 447.6 MB, free: 180 kB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.009261, allocations: 0 / 447.6 MB, free: 180 kB / 366.1 MB Notification: Performance of Templates: time 0.1759/0.1852, allocations: 1.091 MB / 448.7 MB, free: 19.18 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.769723694771528]