Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00169/0.00169, allocations: 200.8 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007624/0.0007622, allocations: 103.6 kB / 299.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3285/0.3285, allocations: 45.01 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.000263, allocations: 8 kB / 470.8 MB, free: 7.113 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2808, allocations: 63.1 MB / 0.5214 GB, free: 38.51 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0004386/0.2813, allocations: 222.6 kB / 0.5216 GB, free: 38.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.2826, allocations: 1.654 MB / 0.5232 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.099e-05/0.2827, allocations: 0 / 0.5232 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.2827, allocations: 0 / 0.5232 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.102e-05/0.2827, allocations: 0 / 0.5232 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.2832, allocations: 152.3 kB / 0.5233 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.138e-05/0.2832, allocations: 14.56 kB / 0.5234 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.349e-05/0.2832, allocations: 0 / 0.5234 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.311e-05/0.2833, allocations: 6.906 kB / 0.5234 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.75e-05/0.2833, allocations: 3.031 kB / 0.5234 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.764e-06/0.2833, allocations: 0 / 0.5234 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003102/0.2836, allocations: 262.1 kB / 0.5236 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.879e-06/0.2836, allocations: 0 / 0.5236 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.2837, allocations: 28.42 kB / 0.5236 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.2838, allocations: 145.4 kB / 0.5238 GB, free: 36.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2838, allocations: 0 / 0.5238 GB, free: 36.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2839, allocations: 4 kB / 0.5238 GB, free: 36.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.045e-06/0.2839, allocations: 0 / 0.5238 GB, free: 36.88 MB / 378.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.0002026/0.2841, allocations: 331.5 kB / 0.5241 GB, free: 36.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.2841, allocations: 11.44 kB / 0.5241 GB, free: 36.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.158e-05/0.2841, allocations: 0.9375 kB / 0.5241 GB, free: 36.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.385e-05/0.2842, allocations: 163.7 kB / 0.5243 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-06/0.2842, allocations: 3.344 kB / 0.5243 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.016e-06/0.2842, allocations: 384 / 0.5243 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.174e-05/0.2843, allocations: 43.11 kB / 0.5243 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.551e-06/0.2843, allocations: 4 kB / 0.5243 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.2843, allocations: 3.938 kB / 0.5243 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.2843, allocations: 3.938 kB / 0.5243 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.641e-05/0.2844, allocations: 9.844 kB / 0.5243 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002401/0.2846, allocations: 237.4 kB / 0.5246 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.728e-05/0.2846, allocations: 17.58 kB / 0.5246 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.171e-05/0.2847, allocations: 7.703 kB / 0.5246 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.2847, allocations: 4 kB / 0.5246 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.2847, allocations: 37.94 kB / 0.5246 GB, free: 35.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.2847, allocations: 3.938 kB / 0.5246 GB, free: 35.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001115/0.2848, allocations: 31.52 kB / 0.5247 GB, free: 35.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.541e-05/0.2848, allocations: 51.41 kB / 0.5247 GB, free: 35.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.811e-05/0.2849, allocations: 95.92 kB / 0.5248 GB, free: 35.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.191e-06/0.2849, allocations: 28.89 kB / 0.5248 GB, free: 35.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.145e-05/0.2849, allocations: 98.09 kB / 0.5249 GB, free: 35.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.51e-06/0.2849, allocations: 3.906 kB / 0.5249 GB, free: 35.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.2849, allocations: 0 / 0.5249 GB, free: 35.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.901e-05/0.285, allocations: 317.8 kB / 0.5252 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-06/0.285, allocations: 0 / 0.5252 GB, free: 35.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.007e-05/0.285, allocations: 24.73 kB / 0.5253 GB, free: 35.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.457e-05/0.2851, allocations: 28.23 kB / 0.5253 GB, free: 35.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2851, allocations: 3.062 kB / 0.5253 GB, free: 35.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.415e-05/0.2851, allocations: 48.03 kB / 0.5253 GB, free: 35.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.2851, allocations: 5.875 kB / 0.5253 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.2851, allocations: 0 / 0.5253 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.2852, allocations: 0 / 0.5253 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.847e-05/0.2852, allocations: 5.625 kB / 0.5253 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.2852, allocations: 14.16 kB / 0.5254 GB, free: 35.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.588e-05/0.2852, allocations: 0 / 0.5254 GB, free: 35.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.2852, allocations: 2.594 kB / 0.5254 GB, free: 35.17 MB / 378.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.166e-05/0.2853, allocations: 113.8 kB / 0.5255 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.057e-05/0.2853, allocations: 3 kB / 0.5255 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.387e-05/0.2854, allocations: 45.25 kB / 0.5255 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2854, allocations: 6.969 kB / 0.5255 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2854, allocations: 0 / 0.5255 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2854, allocations: 3.984 kB / 0.5255 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.384e-05/0.2855, allocations: 155.6 kB / 0.5257 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.2855, allocations: 0 / 0.5257 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.2855, allocations: 0 / 0.5257 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2855, allocations: 0 / 0.5257 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.2856, allocations: 6.969 kB / 0.5257 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2856, allocations: 0 / 0.5257 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2856, allocations: 3.938 kB / 0.5257 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.142e-05/0.2856, allocations: 139.2 kB / 0.5258 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.278e-05/0.2856, allocations: 81.11 kB / 0.5259 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.837e-06/0.2857, allocations: 0 / 0.5259 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.581e-05/0.2857, allocations: 0 / 0.5259 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-06/0.2857, allocations: 6.078 kB / 0.5259 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.2857, allocations: 0 / 0.5259 GB, free: 34.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.573e-05/0.2858, allocations: 78.22 kB / 0.526 GB, free: 34.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2858, allocations: 8.062 kB / 0.526 GB, free: 34.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002504/0.286, allocations: 36.78 kB / 0.526 GB, free: 34.48 MB / 378.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.0002109/0.2862, allocations: 141.3 kB / 0.5261 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.734e-05/0.2863, allocations: 15.72 kB / 0.5262 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2863, allocations: 0 / 0.5262 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.916e-05/0.2863, allocations: 28.48 kB / 0.5262 GB, free: 34.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.2865, allocations: 10.62 kB / 0.5262 GB, free: 34.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001474/0.2867, allocations: 91.75 kB / 0.5263 GB, free: 34.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.417e-05/0.2868, allocations: 0.6754 MB / 0.5269 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.196e-05/0.2868, allocations: 0 / 0.5269 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.947e-06/0.2868, allocations: 10.28 kB / 0.527 GB, free: 33.53 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2868, allocations: 0 / 0.527 GB, free: 33.53 MB / 378.7 MB Notification: Performance of Templates: time 0.002433/0.2893, allocations: 1.055 MB / 0.528 GB, free: 33.44 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches