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.001092/0.001093, allocations: 177 kB / 17.41 MB, free: 4.41 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.189/1.189, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.0006735/0.0006735, allocations: 93.09 kB / 271.9 MB, free: 8.262 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.2936/0.2936, allocations: 43.55 MB / 363.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003595, allocations: 16 kB / 432.6 MB, free: 5.898 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1021, allocations: 58.84 MB / 491.4 MB, free: 10.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2612/0.3634, allocations: 85.38 MB / 0.5633 GB, free: 1.055 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/0.3636, allocations: 71.97 kB / 0.5634 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02428/0.3879, allocations: 8.225 MB / 0.5714 GB, free: 8.785 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3879, allocations: 0 / 0.5714 GB, free: 8.785 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.3879, allocations: 0 / 0.5714 GB, free: 8.785 MB / 394.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.0003055/0.3883, allocations: 347.5 kB / 0.5717 GB, free: 8.395 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3883, allocations: 12.03 kB / 0.5717 GB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.868e-05/0.3883, allocations: 5.547 kB / 0.5717 GB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.52e-05/0.3884, allocations: 164.3 kB / 0.5719 GB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3884, allocations: 4.375 kB / 0.5719 GB, free: 8.176 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.3885, allocations: 384 / 0.5719 GB, free: 8.176 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.3886, allocations: 42.25 kB / 0.572 GB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3886, allocations: 192 / 0.572 GB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.3886, allocations: 3.938 kB / 0.572 GB, free: 8.125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.3886, allocations: 4 kB / 0.572 GB, free: 8.121 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.635e-05/0.3886, allocations: 11.94 kB / 0.572 GB, free: 8.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003197/0.389, allocations: 237.9 kB / 0.5722 GB, free: 7.828 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.4e-05/0.389, allocations: 22.52 kB / 0.5722 GB, free: 7.797 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.249e-05/0.389, allocations: 4.859 kB / 0.5722 GB, free: 7.789 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.3891, allocations: 3.984 kB / 0.5722 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.3891, allocations: 38.62 kB / 0.5723 GB, free: 7.738 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.332e-06/0.3891, allocations: 1.5 kB / 0.5723 GB, free: 7.738 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001302/0.3892, allocations: 39.67 kB / 0.5723 GB, free: 7.695 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.3893, allocations: 51.41 kB / 0.5724 GB, free: 7.633 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.102e-05/0.3894, allocations: 97.84 kB / 0.5724 GB, free: 7.527 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.3894, allocations: 25.7 kB / 0.5725 GB, free: 7.496 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.76e-05/0.3894, allocations: 92.3 kB / 0.5726 GB, free: 7.402 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.609e-06/0.3894, allocations: 4 kB / 0.5726 GB, free: 7.398 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-06/0.3894, allocations: 0 / 0.5726 GB, free: 7.398 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.3895, allocations: 310.8 kB / 0.5729 GB, free: 7.086 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.3896, allocations: 0 / 0.5729 GB, free: 7.086 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.874e-05/0.3896, allocations: 30.5 kB / 0.5729 GB, free: 7.047 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.718e-05/0.3896, allocations: 34.45 kB / 0.5729 GB, free: 7.004 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3896, allocations: 0 / 0.5729 GB, free: 7.004 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.726e-05/0.3897, allocations: 53.53 kB / 0.573 GB, free: 6.945 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.3897, allocations: 8 kB / 0.573 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3898, allocations: 0 / 0.573 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.3898, allocations: 2.625 kB / 0.573 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.279e-05/0.3898, allocations: 4 kB / 0.573 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3898, allocations: 0 / 0.573 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.3898, allocations: 4.094 kB / 0.573 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.3899, allocations: 4 kB / 0.573 GB, free: 6.926 MB / 394.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.073e-05/0.3899, allocations: 117.8 kB / 0.5731 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.39, allocations: 0 / 0.5731 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.793e-05/0.3901, allocations: 44.75 kB / 0.5731 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.3901, allocations: 0 / 0.5731 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.3901, allocations: 0 / 0.5731 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.3901, allocations: 32 / 0.5731 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.3902, allocations: 165.6 kB / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3902, allocations: 0 / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3903, allocations: 0 / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.3903, allocations: 0 / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.95e-06/0.3903, allocations: 0 / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3903, allocations: 0 / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3903, allocations: 4 kB / 0.5733 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.328e-05/0.3904, allocations: 135.4 kB / 0.5734 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.3904, allocations: 85.11 kB / 0.5735 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.061e-05/0.3904, allocations: 0 / 0.5735 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.155e-05/0.3905, allocations: 4 kB / 0.5735 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.093e-05/0.3905, allocations: 0 / 0.5735 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-06/0.3905, allocations: 4 kB / 0.5735 GB, free: 6.281 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.902e-05/0.3905, allocations: 75.28 kB / 0.5736 GB, free: 6.207 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3906, allocations: 0 / 0.5736 GB, free: 6.207 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000271/0.3908, allocations: 51.92 kB / 0.5736 GB, free: 6.156 MB / 394.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.0002592/0.3911, allocations: 155.2 kB / 0.5738 GB, free: 5.996 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.464e-05/0.3912, allocations: 45.56 kB / 0.5738 GB, free: 5.945 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3912, allocations: 0 / 0.5738 GB, free: 5.945 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.705e-05/0.3912, allocations: 29.7 kB / 0.5739 GB, free: 5.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001903/0.3914, allocations: 8.906 kB / 0.5739 GB, free: 5.902 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002042/0.3916, allocations: 110.7 kB / 0.574 GB, free: 5.766 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.3919, allocations: 0.6811 MB / 0.5746 GB, free: 5.059 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.03e-05/0.3919, allocations: 7.438 kB / 0.5747 GB, free: 5.051 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3919, allocations: 0 / 0.5747 GB, free: 5.051 MB / 394.7 MB Notification: Performance of Templates: time 0.002107/0.394, allocations: 0.9086 MB / 0.5755 GB, free: 4.152 MB / 394.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/jenkins1/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