Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001245, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001111/0.001111, allocations: 188 kB / 18.71 MB, free: 4.387 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.269/1.269, allocations: 222.9 MB / 242.4 MB, free: 15.21 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.1959/0.1959, allocations: 44.19 MB / 336.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 55.91 kB / 470.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3279, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001367/0.3293, allocations: 0.496 MB / 0.5194 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.3307, allocations: 1.355 MB / 0.5207 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.188e-05/0.3307, allocations: 5.219 kB / 0.5207 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.3307, allocations: 0 / 0.5207 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.242e-05/0.3308, allocations: 0 / 0.5207 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006099/0.3314, allocations: 215.5 kB / 0.5209 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.773e-05/0.3314, allocations: 9.281 kB / 0.5209 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.5e-05/0.3315, allocations: 3.609 kB / 0.5209 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.687e-05/0.3315, allocations: 7.203 kB / 0.5209 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.112e-05/0.3315, allocations: 1.859 kB / 0.5209 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.3316, allocations: 1.219 kB / 0.5209 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004173/0.332, allocations: 274.3 kB / 0.5212 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.332, allocations: 5.734 kB / 0.5212 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.922e-05/0.332, allocations: 6.266 kB / 0.5212 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.3323, allocations: 144.3 kB / 0.5213 GB, free: 2.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3323, allocations: 3.938 kB / 0.5213 GB, free: 2.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3323, allocations: 0 / 0.5213 GB, free: 2.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.3323, allocations: 0 / 0.5213 GB, free: 2.145 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002923/0.3326, allocations: 331.3 kB / 0.5216 GB, free: 1.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.3326, allocations: 9.719 kB / 0.5217 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.3327, allocations: 2.016 kB / 0.5217 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.849e-05/0.3327, allocations: 170.6 kB / 0.5218 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-06/0.3328, allocations: 384 / 0.5218 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.3328, allocations: 1.75 kB / 0.5218 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.267e-05/0.3329, allocations: 38.19 kB / 0.5219 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.3329, allocations: 0.7031 kB / 0.5219 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.3329, allocations: 1.312 kB / 0.5219 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.3329, allocations: 0 / 0.5219 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.976e-05/0.3329, allocations: 3.156 kB / 0.5219 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001026/0.333, allocations: 148.9 kB / 0.522 GB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.197e-05/0.3331, allocations: 21.95 kB / 0.522 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.3331, allocations: 10.89 kB / 0.522 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.29e-06/0.3331, allocations: 1.344 kB / 0.522 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.566e-05/0.3331, allocations: 39.75 kB / 0.5221 GB, free: 1.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3331, allocations: 0 / 0.5221 GB, free: 1.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001159/0.3332, allocations: 37.38 kB / 0.5221 GB, free: 1.234 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.796e-05/0.3333, allocations: 61.16 kB / 0.5222 GB, free: 1.164 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.203e-05/0.3333, allocations: 94.11 kB / 0.5223 GB, free: 1.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.392e-06/0.3333, allocations: 25.7 kB / 0.5223 GB, free: 1.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.28e-05/0.3333, allocations: 80.75 kB / 0.5224 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.3334, allocations: 5.344 kB / 0.5224 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.192e-05/0.3334, allocations: 12.78 kB / 0.5224 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.821e-05/0.3334, allocations: 315.4 kB / 0.5227 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/0.3334, allocations: 2.984 kB / 0.5227 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.254e-06/0.3335, allocations: 5.219 kB / 0.5227 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.295e-05/0.3335, allocations: 12.66 kB / 0.5227 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3335, allocations: 0 / 0.5227 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.592e-05/0.3335, allocations: 34.22 kB / 0.5227 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.3336, allocations: 9.562 kB / 0.5227 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3336, allocations: 0.7031 kB / 0.5227 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.3336, allocations: 0 / 0.5227 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.874e-05/0.3336, allocations: 2.766 kB / 0.5227 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.3337, allocations: 1.219 kB / 0.5227 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.268e-05/0.3337, allocations: 4 kB / 0.5227 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.3337, allocations: 1.703 kB / 0.5228 GB, free: 0.5625 MB / 382.1 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 4.338e-05/0.3337, allocations: 111.7 kB / 0.5229 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.3337, allocations: 9.078 kB / 0.5229 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.847e-05/0.3339, allocations: 55.91 kB / 0.5229 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3339, allocations: 4.734 kB / 0.5229 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3339, allocations: 1.188 kB / 0.5229 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3339, allocations: 0 / 0.5229 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.091e-05/0.3339, allocations: 150.9 kB / 0.5231 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3339, allocations: 1 kB / 0.5231 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.122e-06/0.3339, allocations: 0.6562 kB / 0.5231 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.334, allocations: 5.188 kB / 0.5231 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.334, allocations: 0 / 0.5231 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.334, allocations: 1.734 kB / 0.5231 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.334, allocations: 0 / 0.5231 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.426e-05/0.334, allocations: 67.8 kB / 0.5231 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.364e-05/0.3341, allocations: 85.66 kB / 0.5232 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.3341, allocations: 1.734 kB / 0.5232 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.117e-05/0.3341, allocations: 6.422 kB / 0.5232 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.112e-05/0.3342, allocations: 2.234 kB / 0.5232 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.3342, allocations: 1.062 kB / 0.5232 GB, free: 12 kB / 382.1 MB Notification: Performance of sorting global known variables: time 5.015e-05/0.3342, allocations: 82.14 kB / 0.5233 GB, free: 15.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.3342, allocations: 0 / 0.5233 GB, free: 15.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002691/0.3345, allocations: 43.88 kB / 0.5234 GB, free: 15.93 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.0002467/0.3347, allocations: 138.8 kB / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.571e-05/0.3348, allocations: 5.609 kB / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3348, allocations: 0 / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-05/0.3349, allocations: 34.45 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.335, allocations: 2.219 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001875/0.3352, allocations: 84.77 kB / 0.5236 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.3355, allocations: 0.6773 MB / 0.5243 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.405e-05/0.3355, allocations: 1.031 kB / 0.5243 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.498e-05/0.3355, allocations: 8.75 kB / 0.5243 GB, free: 14.98 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3355, allocations: 0 / 0.5243 GB, free: 14.98 MB / 398.1 MB Notification: Performance of Templates: time 0.003442/0.3389, allocations: 1.067 MB / 0.5253 GB, free: 14.88 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches