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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009553/0.0009553, allocations: 178.8 kB / 18.09 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.3 MB / 242.1 MB, free: 11.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007682/0.0007683, allocations: 98.41 kB / 293.3 MB, free: 10.73 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2873/0.2873, allocations: 44.14 MB / 388.5 MB, free: 38.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000334/0.000334, allocations: 12 kB / 461.1 MB, free: 1.301 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2762, allocations: 61.88 MB / 0.5107 GB, free: 38.36 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.3769, allocations: 86.44 MB / 0.5951 GB, free: 8.602 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3771, allocations: 83.92 kB / 0.5952 GB, free: 8.523 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02517/0.4023, allocations: 8.303 MB / 0.6033 GB, free: 216 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4024, allocations: 0 / 0.6033 GB, free: 216 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.4024, allocations: 0 / 0.6033 GB, free: 216 kB / 410.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.0003666/0.4028, allocations: 343.5 kB / 0.6036 GB, free: 15.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.4028, allocations: 12.03 kB / 0.6037 GB, free: 15.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.648e-05/0.4029, allocations: 8.844 kB / 0.6037 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.664e-05/0.403, allocations: 164.3 kB / 0.6038 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.403, allocations: 384 / 0.6038 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.403, allocations: 4.375 kB / 0.6038 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.4031, allocations: 42.25 kB / 0.6039 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.4031, allocations: 192 / 0.6039 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.4032, allocations: 3.938 kB / 0.6039 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.4032, allocations: 0 / 0.6039 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.534e-05/0.4032, allocations: 8 kB / 0.6039 GB, free: 15.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.4035, allocations: 241 kB / 0.6041 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.434e-05/0.4036, allocations: 22.45 kB / 0.6041 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.384e-05/0.4036, allocations: 12.86 kB / 0.6041 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.4037, allocations: 0 / 0.6041 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.4037, allocations: 34.56 kB / 0.6042 GB, free: 15.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.4037, allocations: 4 kB / 0.6042 GB, free: 15.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001421/0.4038, allocations: 37.69 kB / 0.6042 GB, free: 15.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.4039, allocations: 55.34 kB / 0.6043 GB, free: 15.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.538e-05/0.404, allocations: 97.8 kB / 0.6044 GB, free: 14.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.404, allocations: 29.7 kB / 0.6044 GB, free: 14.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.404, allocations: 84.05 kB / 0.6045 GB, free: 14.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.126e-06/0.404, allocations: 7.984 kB / 0.6045 GB, free: 14.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.404, allocations: 0 / 0.6045 GB, free: 14.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4042, allocations: 315.1 kB / 0.6048 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.4042, allocations: 0 / 0.6048 GB, free: 14.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.504e-05/0.4042, allocations: 22.58 kB / 0.6048 GB, free: 14.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.582e-05/0.4042, allocations: 30.45 kB / 0.6048 GB, free: 14.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4043, allocations: 0 / 0.6048 GB, free: 14.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.46e-05/0.4043, allocations: 53.62 kB / 0.6049 GB, free: 14.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.4044, allocations: 4 kB / 0.6049 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.4044, allocations: 4 kB / 0.6049 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.4044, allocations: 0 / 0.6049 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.067e-05/0.4044, allocations: 4.094 kB / 0.6049 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.4045, allocations: 3.984 kB / 0.6049 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.186e-05/0.4045, allocations: 7.906 kB / 0.6049 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.4045, allocations: 3.984 kB / 0.6049 GB, free: 14.35 MB / 426.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): 2 * 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 prepare postOptimizeDAE: time 7.794e-05/0.4046, allocations: 117.9 kB / 0.605 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.4046, allocations: 4 kB / 0.605 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.4047, allocations: 52.28 kB / 0.6051 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.4047, allocations: 0 / 0.6051 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4047, allocations: 0 / 0.6051 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.4047, allocations: 0 / 0.6051 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001449/0.4049, allocations: 149.6 kB / 0.6052 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.4049, allocations: 4 kB / 0.6052 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-07/0.4049, allocations: 4.031 kB / 0.6052 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.4049, allocations: 0 / 0.6052 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.4049, allocations: 3.984 kB / 0.6052 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4049, allocations: 0 / 0.6052 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4049, allocations: 0 / 0.6052 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.4051, allocations: 131.5 kB / 0.6054 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.295e-05/0.4051, allocations: 77.11 kB / 0.6054 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.4051, allocations: 4 kB / 0.6054 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.158e-05/0.4052, allocations: 8.016 kB / 0.6054 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.4052, allocations: 3.938 kB / 0.6054 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.4052, allocations: 11.88 kB / 0.6055 GB, free: 13.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.079e-05/0.4053, allocations: 79.28 kB / 0.6055 GB, free: 13.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4053, allocations: 0 / 0.6055 GB, free: 13.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003183/0.4056, allocations: 47.94 kB / 0.6056 GB, free: 13.57 MB / 426.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.0002837/0.4059, allocations: 151.7 kB / 0.6057 GB, free: 13.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.333e-05/0.406, allocations: 37.8 kB / 0.6058 GB, free: 13.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.406, allocations: 0 / 0.6058 GB, free: 13.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.803e-05/0.406, allocations: 29.64 kB / 0.6058 GB, free: 13.33 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001966/0.4062, allocations: 7.938 kB / 0.6058 GB, free: 13.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002136/0.4064, allocations: 86.75 kB / 0.6059 GB, free: 13.21 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.4067, allocations: 0.6731 MB / 0.6065 GB, free: 12.51 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.199e-05/0.4067, allocations: 8.234 kB / 0.6065 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.14e-05/0.4067, allocations: 7.438 kB / 0.6065 GB, free: 12.5 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4067, allocations: 0 / 0.6065 GB, free: 12.5 MB / 426.7 MB Notification: Performance of Templates: time 0.003057/0.4098, allocations: 0.9735 MB / 0.6075 GB, free: 11.53 MB / 426.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches