Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2043/0.2043, allocations: 44.19 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.89 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3218, allocations: 60.81 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001438/0.3232, allocations: 0.5025 MB / 0.5194 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.3248, allocations: 1.36 MB / 0.5207 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.23e-05/0.3248, allocations: 0 / 0.5207 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.43e-05/0.3248, allocations: 0 / 0.5207 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.059e-05/0.3249, allocations: 0 / 0.5207 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006977/0.3256, allocations: 215.7 kB / 0.5209 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.788e-05/0.3256, allocations: 5.922 kB / 0.5209 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.34e-05/0.3257, allocations: 6.984 kB / 0.5209 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.002e-05/0.3257, allocations: 6.141 kB / 0.5209 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.284e-05/0.3258, allocations: 4.156 kB / 0.5209 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.3258, allocations: 4 kB / 0.5209 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004898/0.3263, allocations: 274.6 kB / 0.5212 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.834e-05/0.3263, allocations: 1.656 kB / 0.5212 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.279e-05/0.3263, allocations: 6.016 kB / 0.5212 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.3266, allocations: 143.6 kB / 0.5213 GB, free: 2.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3266, allocations: 0.75 kB / 0.5213 GB, free: 2.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3266, allocations: 0 / 0.5213 GB, free: 2.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3266, allocations: 1.125 kB / 0.5213 GB, free: 2.125 MB / 382.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.0003209/0.3269, allocations: 339.1 kB / 0.5217 GB, free: 1.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.327, allocations: 9.781 kB / 0.5217 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.327, allocations: 2.312 kB / 0.5217 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.648e-05/0.3271, allocations: 161.2 kB / 0.5218 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.3271, allocations: 384 / 0.5218 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.3271, allocations: 5.641 kB / 0.5218 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.3272, allocations: 47.58 kB / 0.5219 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3272, allocations: 0 / 0.5219 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.3273, allocations: 0.75 kB / 0.5219 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.3273, allocations: 1.062 kB / 0.5219 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.074e-05/0.3273, allocations: 9.078 kB / 0.5219 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002737/0.3276, allocations: 243 kB / 0.5221 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.461e-05/0.3276, allocations: 21.62 kB / 0.5221 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.452e-05/0.3276, allocations: 6.594 kB / 0.5221 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.3277, allocations: 5 kB / 0.5221 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.3277, allocations: 32.09 kB / 0.5222 GB, free: 1.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3277, allocations: 4 kB / 0.5222 GB, free: 1.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001406/0.3278, allocations: 34.16 kB / 0.5222 GB, free: 1.129 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.3279, allocations: 52.3 kB / 0.5223 GB, free: 1.066 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.095e-05/0.3279, allocations: 96.72 kB / 0.5224 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.328, allocations: 27.31 kB / 0.5224 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.356e-05/0.328, allocations: 89.66 kB / 0.5225 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.083e-06/0.328, allocations: 7.844 kB / 0.5225 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.3281, allocations: 23.62 kB / 0.5225 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.3281, allocations: 315.7 kB / 0.5228 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.248e-05/0.3281, allocations: 2.219 kB / 0.5228 GB, free: 0.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.286e-05/0.3282, allocations: 27.8 kB / 0.5228 GB, free: 480 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.301e-05/0.3282, allocations: 24.84 kB / 0.5228 GB, free: 452 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3282, allocations: 1.156 kB / 0.5228 GB, free: 452 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.506e-05/0.3283, allocations: 53.27 kB / 0.5229 GB, free: 408 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3283, allocations: 8.188 kB / 0.5229 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3283, allocations: 1.375 kB / 0.5229 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3283, allocations: 1.078 kB / 0.5229 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.454e-05/0.3284, allocations: 10.59 kB / 0.5229 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3284, allocations: 1.125 kB / 0.5229 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.3284, allocations: 1.125 kB / 0.5229 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-06/0.3284, allocations: 5.281 kB / 0.5229 GB, free: 400 kB / 382.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 4.766e-05/0.3285, allocations: 117 kB / 0.523 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.3285, allocations: 1.734 kB / 0.523 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.3286, allocations: 42.38 kB / 0.5231 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3286, allocations: 1.188 kB / 0.5231 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3286, allocations: 0.75 kB / 0.5231 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3287, allocations: 5.344 kB / 0.5231 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.3288, allocations: 153.1 kB / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3288, allocations: 5.812 kB / 0.5232 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.392e-06/0.3288, allocations: 1.156 kB / 0.5232 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.3288, allocations: 0 / 0.5232 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.3288, allocations: 1.188 kB / 0.5232 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3288, allocations: 0.75 kB / 0.5232 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3288, allocations: 96 / 0.5232 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001189/0.3289, allocations: 137.2 kB / 0.5234 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.329, allocations: 83.08 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.329, allocations: 1.906 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.815e-05/0.3291, allocations: 5.156 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.372e-05/0.3291, allocations: 4.734 kB / 0.5235 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.3291, allocations: 1.031 kB / 0.5235 GB, free: 15.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.143e-05/0.3292, allocations: 78.38 kB / 0.5235 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.3292, allocations: 0 / 0.5235 GB, free: 15.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.3295, allocations: 44.16 kB / 0.5236 GB, free: 15.7 MB / 398.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.0003051/0.3298, allocations: 143.7 kB / 0.5237 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.3299, allocations: 12.53 kB / 0.5237 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3299, allocations: 0 / 0.5237 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.044e-05/0.33, allocations: 30.28 kB / 0.5238 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.3302, allocations: 5.438 kB / 0.5238 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002816/0.3305, allocations: 82.23 kB / 0.5238 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.3308, allocations: 0.6806 MB / 0.5245 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.525e-05/0.3309, allocations: 5.484 kB / 0.5245 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.854e-05/0.3309, allocations: 9.469 kB / 0.5245 GB, free: 14.75 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3309, allocations: 0 / 0.5245 GB, free: 14.75 MB / 398.1 MB Notification: Performance of Templates: time 0.00422/0.3351, allocations: 1.064 MB / 0.5256 GB, free: 14.61 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches