Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008666/0.0008667, allocations: 171.2 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.207/1.207, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006705/0.0006705, allocations: 81.44 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2845/0.2845, allocations: 43.56 MB / 363.1 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 12 kB / 432 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.09883, allocations: 58.84 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005575/0.09943, allocations: 228.4 kB / 491 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.101, allocations: 1.354 MB / 492.4 MB, free: 9.312 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.835e-05/0.1011, allocations: 0 / 492.4 MB, free: 9.312 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.367e-06/0.1011, allocations: 4 kB / 492.4 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.912e-05/0.1011, allocations: 0 / 492.4 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005426/0.1017, allocations: 159.6 kB / 492.5 MB, free: 9.152 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.887e-05/0.1017, allocations: 11.97 kB / 492.6 MB, free: 9.141 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.943e-05/0.1018, allocations: 0 / 492.6 MB, free: 9.141 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.1018, allocations: 4 kB / 492.6 MB, free: 9.137 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.335e-05/0.1019, allocations: 7.938 kB / 492.6 MB, free: 9.129 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.1019, allocations: 4 kB / 492.6 MB, free: 9.125 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003729/0.1023, allocations: 251.7 kB / 492.8 MB, free: 8.879 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.1023, allocations: 7.984 kB / 492.8 MB, free: 8.871 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.733e-05/0.1023, allocations: 33.64 kB / 492.9 MB, free: 8.832 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.1025, allocations: 83.83 kB / 492.9 MB, free: 8.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1025, allocations: 0 / 492.9 MB, free: 8.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1025, allocations: 3.938 kB / 492.9 MB, free: 8.746 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.1025, allocations: 0 / 492.9 MB, free: 8.746 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.0003298/0.1028, allocations: 327.6 kB / 493.3 MB, free: 8.379 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1029, allocations: 12.03 kB / 493.3 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.166e-05/0.1029, allocations: 4.844 kB / 493.3 MB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.618e-05/0.103, allocations: 164.4 kB / 493.4 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-06/0.103, allocations: 384 / 493.4 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.103, allocations: 8.375 kB / 493.5 MB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.1032, allocations: 46.02 kB / 493.5 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.1032, allocations: 0 / 493.5 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.1032, allocations: 3.984 kB / 493.5 MB, free: 8.102 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.1032, allocations: 3.938 kB / 493.5 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.142e-05/0.1032, allocations: 11.94 kB / 493.5 MB, free: 8.086 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.1036, allocations: 240.9 kB / 493.8 MB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.718e-05/0.1036, allocations: 22.58 kB / 493.8 MB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.1036, allocations: 4.859 kB / 493.8 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.1037, allocations: 0 / 493.8 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.1037, allocations: 34.56 kB / 493.8 MB, free: 7.719 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.174e-06/0.1037, allocations: 0 / 493.8 MB, free: 7.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001242/0.1038, allocations: 37.7 kB / 493.8 MB, free: 7.676 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.1039, allocations: 51.41 kB / 493.9 MB, free: 7.613 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.375e-05/0.1039, allocations: 102 kB / 494 MB, free: 7.504 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.104, allocations: 29.7 kB / 494 MB, free: 7.469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.104, allocations: 88.27 kB / 494.1 MB, free: 7.379 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-06/0.104, allocations: 0 / 494.1 MB, free: 7.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.104, allocations: 0 / 494.1 MB, free: 7.379 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.683e-05/0.1041, allocations: 318.8 kB / 494.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.1041, allocations: 0 / 494.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.574e-05/0.1042, allocations: 30.69 kB / 494.5 MB, free: 7.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.188e-05/0.1042, allocations: 22.52 kB / 494.5 MB, free: 6.988 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1042, allocations: 0 / 494.5 MB, free: 6.988 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.633e-05/0.1043, allocations: 53.62 kB / 494.5 MB, free: 6.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.1043, allocations: 4 kB / 494.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1043, allocations: 96 / 494.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1043, allocations: 4 kB / 494.5 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.547e-05/0.1044, allocations: 8 kB / 494.5 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1044, allocations: 0 / 494.5 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.703e-05/0.1044, allocations: 7.844 kB / 494.6 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.1045, allocations: 4 kB / 494.6 MB, free: 6.902 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.512e-05/0.1045, allocations: 113.8 kB / 494.7 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.206e-05/0.1045, allocations: 3.984 kB / 494.7 MB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.998e-05/0.1047, allocations: 40.83 kB / 494.7 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1047, allocations: 8.031 kB / 494.7 MB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1047, allocations: 0 / 494.7 MB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1047, allocations: 3.984 kB / 494.7 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.1048, allocations: 157.6 kB / 494.9 MB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.1048, allocations: 4 kB / 494.9 MB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1048, allocations: 3.938 kB / 494.9 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1048, allocations: 0 / 494.9 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.1049, allocations: 0 / 494.9 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1049, allocations: 4.031 kB / 494.9 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1049, allocations: 3.938 kB / 494.9 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.99e-05/0.105, allocations: 135.5 kB / 495 MB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.105, allocations: 77.11 kB / 495.1 MB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.105, allocations: 4 kB / 495.1 MB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.555e-05/0.1051, allocations: 4 kB / 495.1 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.246e-05/0.1051, allocations: 0 / 495.1 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1051, allocations: 4.031 kB / 495.1 MB, free: 6.246 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.359e-05/0.1052, allocations: 83.27 kB / 495.2 MB, free: 6.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1052, allocations: 0 / 495.2 MB, free: 6.164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002732/0.1054, allocations: 36 kB / 495.2 MB, free: 6.129 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002417/0.1057, allocations: 139.2 kB / 495.4 MB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.325e-05/0.1058, allocations: 11.94 kB / 495.4 MB, free: 5.973 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1058, allocations: 0 / 495.4 MB, free: 5.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.969e-05/0.1058, allocations: 29.98 kB / 495.4 MB, free: 5.938 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.106, allocations: 11.55 kB / 495.4 MB, free: 5.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002152/0.1062, allocations: 112.5 kB / 495.5 MB, free: 5.789 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.1065, allocations: 0.6731 MB / 496.2 MB, free: 5.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.197e-05/0.1065, allocations: 7.438 kB / 496.2 MB, free: 5.082 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.1065, allocations: 0 / 496.2 MB, free: 5.082 MB / 378.7 MB Notification: Performance of Templates: time 0.002093/0.1086, allocations: 0.9126 MB / 497.1 MB, free: 4.172 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches