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.001008/0.001008, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001049/0.00105, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.252/1.252, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.1936/0.1936, allocations: 44.19 MB / 336.7 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 71.89 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3084, allocations: 60.81 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001463/0.3099, allocations: 0.5039 MB / 0.5194 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3115, allocations: 1.355 MB / 0.5207 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.642e-05/0.3115, allocations: 0 / 0.5207 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.581e-05/0.3115, allocations: 3.938 kB / 0.5207 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.653e-05/0.3116, allocations: 0 / 0.5207 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.3123, allocations: 211.6 kB / 0.5209 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.84e-05/0.3124, allocations: 9.922 kB / 0.5209 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.635e-05/0.3124, allocations: 5.797 kB / 0.5209 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.509e-05/0.3125, allocations: 11.44 kB / 0.5209 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.487e-05/0.3125, allocations: 3.359 kB / 0.5209 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.3125, allocations: 1.562 kB / 0.5209 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000471/0.313, allocations: 269.7 kB / 0.5212 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.313, allocations: 1.172 kB / 0.5212 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.274e-05/0.3131, allocations: 6.844 kB / 0.5212 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.3133, allocations: 143.5 kB / 0.5213 GB, free: 2.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.3133, allocations: 0.9062 kB / 0.5213 GB, free: 2.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3133, allocations: 0 / 0.5213 GB, free: 2.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.3133, allocations: 0 / 0.5213 GB, free: 2.137 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.0002699/0.3136, allocations: 339.5 kB / 0.5217 GB, free: 1.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.3136, allocations: 9.812 kB / 0.5217 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.3137, allocations: 2.688 kB / 0.5217 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.253e-05/0.3137, allocations: 165.1 kB / 0.5218 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.744e-06/0.3137, allocations: 1.594 kB / 0.5218 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.3137, allocations: 1.625 kB / 0.5218 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.3139, allocations: 46.8 kB / 0.5219 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.3139, allocations: 0 / 0.5219 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.3139, allocations: 1.062 kB / 0.5219 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3139, allocations: 4 kB / 0.5219 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.053e-05/0.3139, allocations: 6.219 kB / 0.5219 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002614/0.3142, allocations: 239.4 kB / 0.5221 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.761e-05/0.3142, allocations: 25.52 kB / 0.5221 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.253e-05/0.3142, allocations: 5.797 kB / 0.5221 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.3143, allocations: 0 / 0.5221 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.164e-05/0.3143, allocations: 36.44 kB / 0.5222 GB, free: 1.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.3143, allocations: 1.156 kB / 0.5222 GB, free: 1.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001201/0.3144, allocations: 36.45 kB / 0.5222 GB, free: 1.141 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.963e-05/0.3144, allocations: 57.41 kB / 0.5223 GB, free: 1.074 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.787e-05/0.3145, allocations: 98.38 kB / 0.5224 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.012e-06/0.3145, allocations: 25.7 kB / 0.5224 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.569e-05/0.3145, allocations: 94 kB / 0.5225 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.049e-06/0.3145, allocations: 9.281 kB / 0.5225 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/0.3146, allocations: 18.41 kB / 0.5225 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.942e-05/0.3146, allocations: 315.6 kB / 0.5228 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.084e-05/0.3146, allocations: 2.406 kB / 0.5228 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.85e-05/0.3147, allocations: 19.2 kB / 0.5228 GB, free: 492 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.863e-05/0.3147, allocations: 32.95 kB / 0.5229 GB, free: 456 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3147, allocations: 1 kB / 0.5229 GB, free: 456 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.931e-05/0.3148, allocations: 49.78 kB / 0.5229 GB, free: 416 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.3148, allocations: 5.312 kB / 0.5229 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.3148, allocations: 0.7969 kB / 0.5229 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3148, allocations: 2.312 kB / 0.5229 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.311e-05/0.3148, allocations: 4.562 kB / 0.5229 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3149, allocations: 1.906 kB / 0.5229 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.3149, allocations: 10.36 kB / 0.5229 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.3149, allocations: 1.094 kB / 0.5229 GB, free: 408 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 3.853e-05/0.3149, allocations: 112.6 kB / 0.523 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.202e-05/0.315, allocations: 1.188 kB / 0.523 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.07e-05/0.3151, allocations: 52.36 kB / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3151, allocations: 0 / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3151, allocations: 4.031 kB / 0.5231 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3151, allocations: 5.188 kB / 0.5231 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.775e-05/0.3152, allocations: 153.7 kB / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3152, allocations: 1.406 kB / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-06/0.3152, allocations: 0.75 kB / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.3152, allocations: 1.312 kB / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-06/0.3152, allocations: 0 / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3152, allocations: 2.078 kB / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.3152, allocations: 0 / 0.5232 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.418e-05/0.3153, allocations: 133.4 kB / 0.5234 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.499e-05/0.3154, allocations: 82.88 kB / 0.5235 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.05e-05/0.3154, allocations: 4.594 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.802e-05/0.3154, allocations: 1.469 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.74e-05/0.3155, allocations: 6.094 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.3155, allocations: 0 / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.88e-05/0.3155, allocations: 78.09 kB / 0.5235 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.522e-06/0.3155, allocations: 128 / 0.5235 GB, free: 15.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002852/0.3158, allocations: 48.84 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.0002485/0.3161, allocations: 139.4 kB / 0.5237 GB, free: 15.6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.622e-05/0.3161, allocations: 9.281 kB / 0.5237 GB, free: 15.6 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3162, allocations: 0 / 0.5237 GB, free: 15.6 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.021e-05/0.3162, allocations: 33.08 kB / 0.5238 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.3164, allocations: 10.25 kB / 0.5238 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001794/0.3166, allocations: 88.83 kB / 0.5239 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.3168, allocations: 0.6768 MB / 0.5245 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.993e-05/0.3168, allocations: 1.25 kB / 0.5245 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.308e-05/0.3168, allocations: 9.484 kB / 0.5245 GB, free: 14.75 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3168, allocations: 0.9375 kB / 0.5245 GB, free: 14.75 MB / 398.1 MB Notification: Performance of Templates: time 0.003264/0.3201, allocations: 1.06 MB / 0.5256 GB, free: 14.62 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