Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009564/0.0009564, allocations: 195.2 kB / 16.78 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 226.5 MB / 244.1 MB, free: 8.078 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007424/0.0007424, allocations: 96 kB / 296.1 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3026/0.3026, allocations: 44.82 MB / 392.9 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002406, allocations: 15.98 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3065, allocations: 62.96 MB / 0.5165 GB, free: 37.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.4079, allocations: 87.36 MB / 0.6018 GB, free: 2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.4081, allocations: 67.97 kB / 0.6018 GB, free: 1.934 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02502/0.4331, allocations: 8.372 MB / 0.61 GB, free: 9.547 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4332, allocations: 4 kB / 0.61 GB, free: 9.543 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.4332, allocations: 0 / 0.61 GB, free: 9.543 MB / 426.7 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.0003419/0.4336, allocations: 347.5 kB / 0.6104 GB, free: 9.152 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4336, allocations: 8.031 kB / 0.6104 GB, free: 9.145 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.151e-05/0.4336, allocations: 0.9375 kB / 0.6104 GB, free: 9.145 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.4338, allocations: 164.4 kB / 0.6105 GB, free: 8.945 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.4338, allocations: 384 / 0.6105 GB, free: 8.945 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.4338, allocations: 384 / 0.6105 GB, free: 8.945 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.001e-05/0.4339, allocations: 46.19 kB / 0.6106 GB, free: 8.895 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.4339, allocations: 192 / 0.6106 GB, free: 8.895 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.4339, allocations: 3.938 kB / 0.6106 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4339, allocations: 0 / 0.6106 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.451e-05/0.4339, allocations: 0 / 0.6106 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.4341, allocations: 149.7 kB / 0.6107 GB, free: 8.695 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.555e-05/0.4341, allocations: 22.61 kB / 0.6107 GB, free: 8.664 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.688e-05/0.4342, allocations: 4.859 kB / 0.6107 GB, free: 8.656 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.4342, allocations: 15.81 kB / 0.6108 GB, free: 8.641 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.4342, allocations: 34.62 kB / 0.6108 GB, free: 8.598 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.4342, allocations: 0 / 0.6108 GB, free: 8.598 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001214/0.4344, allocations: 33.64 kB / 0.6108 GB, free: 8.559 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.4344, allocations: 59.39 kB / 0.6109 GB, free: 8.488 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.577e-05/0.4345, allocations: 93.86 kB / 0.611 GB, free: 8.387 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.4345, allocations: 25.7 kB / 0.611 GB, free: 8.355 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.97e-05/0.4345, allocations: 88.39 kB / 0.6111 GB, free: 8.266 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.4345, allocations: 0 / 0.6111 GB, free: 8.266 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-06/0.4346, allocations: 0 / 0.6111 GB, free: 8.266 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.4347, allocations: 310.8 kB / 0.6114 GB, free: 7.953 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.151e-05/0.4347, allocations: 0 / 0.6114 GB, free: 7.953 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.965e-06/0.4347, allocations: 7.938 kB / 0.6114 GB, free: 7.945 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.655e-05/0.4347, allocations: 12.86 kB / 0.6114 GB, free: 7.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.4347, allocations: 0 / 0.6114 GB, free: 7.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.276e-05/0.4348, allocations: 41.66 kB / 0.6114 GB, free: 7.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.4348, allocations: 11.94 kB / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.4348, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.4348, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.4349, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.4349, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.4349, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.4349, allocations: 4 kB / 0.6114 GB, free: 7.867 MB / 426.7 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): 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 prepare postOptimizeDAE: time 6.597e-05/0.435, allocations: 105.8 kB / 0.6115 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.435, allocations: 11.91 kB / 0.6116 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.89e-05/0.4351, allocations: 48.41 kB / 0.6116 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.4351, allocations: 0 / 0.6116 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4351, allocations: 0 / 0.6116 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.4351, allocations: 4 kB / 0.6116 GB, free: 7.691 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.742e-05/0.4352, allocations: 145.7 kB / 0.6117 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4352, allocations: 0 / 0.6117 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-06/0.4352, allocations: 4 kB / 0.6117 GB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.4352, allocations: 11.97 kB / 0.6118 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.551e-06/0.4353, allocations: 0 / 0.6118 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4353, allocations: 0 / 0.6118 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4353, allocations: 0 / 0.6118 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.534e-05/0.4353, allocations: 69 kB / 0.6118 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.878e-05/0.4354, allocations: 77.11 kB / 0.6119 GB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.4354, allocations: 3.938 kB / 0.6119 GB, free: 7.301 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.9e-05/0.4354, allocations: 8.031 kB / 0.6119 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.279e-05/0.4355, allocations: 3.984 kB / 0.6119 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.4355, allocations: 4 kB / 0.6119 GB, free: 7.285 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.175e-05/0.4355, allocations: 83.22 kB / 0.612 GB, free: 7.203 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4355, allocations: 0 / 0.612 GB, free: 7.203 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000276/0.4358, allocations: 47.94 kB / 0.612 GB, free: 7.156 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.0002733/0.4361, allocations: 149.8 kB / 0.6122 GB, free: 7.004 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.194e-05/0.4362, allocations: 37.8 kB / 0.6122 GB, free: 6.961 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4362, allocations: 0 / 0.6122 GB, free: 6.961 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.173e-05/0.4362, allocations: 33.64 kB / 0.6123 GB, free: 6.922 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001481/0.4364, allocations: 6.188 kB / 0.6123 GB, free: 6.918 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002398/0.4366, allocations: 104.5 kB / 0.6124 GB, free: 6.781 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.4369, allocations: 0.6731 MB / 0.613 GB, free: 6.082 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.398e-06/0.4369, allocations: 7.438 kB / 0.613 GB, free: 6.074 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4369, allocations: 0 / 0.613 GB, free: 6.074 MB / 426.7 MB Notification: Performance of Templates: time 0.002317/0.4392, allocations: 0.893 MB / 0.6139 GB, free: 5.18 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches