Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001285/0.001286, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.331/1.331, allocations: 205.4 MB / 223.6 MB, free: 9.039 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.000733/0.000733, allocations: 96.48 kB / 271.9 MB, free: 8.273 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.3002/0.3002, allocations: 43.56 MB / 363.8 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003432, allocations: 12 kB / 432.6 MB, free: 5.918 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.09767, allocations: 58.85 MB / 491.4 MB, free: 10.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2647/0.3624, allocations: 85.39 MB / 0.5633 GB, free: 1.074 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.3626, allocations: 67.95 kB / 0.5634 GB, free: 1.008 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02432/0.3869, allocations: 8.233 MB / 0.5714 GB, free: 8.797 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.387, allocations: 0 / 0.5714 GB, free: 8.797 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.535e-06/0.387, allocations: 4 kB / 0.5714 GB, free: 8.793 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003709/0.3874, allocations: 348 kB / 0.5717 GB, free: 8.402 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3874, allocations: 12.02 kB / 0.5718 GB, free: 8.391 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.3875, allocations: 5.875 kB / 0.5718 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.3876, allocations: 160.4 kB / 0.5719 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.3876, allocations: 384 / 0.5719 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.3876, allocations: 384 / 0.5719 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.491e-05/0.3877, allocations: 30.27 kB / 0.5719 GB, free: 8.156 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.3877, allocations: 4.188 kB / 0.572 GB, free: 8.152 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3877, allocations: 3.938 kB / 0.572 GB, free: 8.148 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.3877, allocations: 0 / 0.572 GB, free: 8.148 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.053e-05/0.3878, allocations: 11.92 kB / 0.572 GB, free: 8.137 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.3879, allocations: 147.7 kB / 0.5721 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.799e-05/0.388, allocations: 18.61 kB / 0.5721 GB, free: 7.918 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.399e-05/0.388, allocations: 4.859 kB / 0.5721 GB, free: 7.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.388, allocations: 5.281 kB / 0.5721 GB, free: 7.906 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.3881, allocations: 38.55 kB / 0.5722 GB, free: 7.859 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3881, allocations: 0 / 0.5722 GB, free: 7.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001241/0.3882, allocations: 45.58 kB / 0.5722 GB, free: 7.809 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.3882, allocations: 51.41 kB / 0.5723 GB, free: 7.746 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.962e-05/0.3883, allocations: 93.86 kB / 0.5724 GB, free: 7.645 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.3883, allocations: 25.7 kB / 0.5724 GB, free: 7.613 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.918e-05/0.3884, allocations: 80.39 kB / 0.5725 GB, free: 7.531 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.3884, allocations: 7.906 kB / 0.5725 GB, free: 7.523 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.3884, allocations: 4 kB / 0.5725 GB, free: 7.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3885, allocations: 314.8 kB / 0.5728 GB, free: 7.203 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.121e-05/0.3885, allocations: 4 kB / 0.5728 GB, free: 7.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.524e-06/0.3885, allocations: 0 / 0.5728 GB, free: 7.199 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.594e-05/0.3886, allocations: 11.58 kB / 0.5728 GB, free: 7.188 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.3886, allocations: 0 / 0.5728 GB, free: 7.188 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.149e-05/0.3886, allocations: 37.73 kB / 0.5728 GB, free: 7.145 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3887, allocations: 15.88 kB / 0.5728 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3887, allocations: 0 / 0.5728 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.3887, allocations: 3.984 kB / 0.5728 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.3887, allocations: 4 kB / 0.5728 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.3887, allocations: 0 / 0.5728 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.621e-05/0.3887, allocations: 0 / 0.5728 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.3888, allocations: 0 / 0.5728 GB, free: 7.121 MB / 394.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.506e-05/0.3888, allocations: 109.8 kB / 0.5729 GB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.239e-05/0.3888, allocations: 11.94 kB / 0.573 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.389, allocations: 44.81 kB / 0.573 GB, free: 6.945 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.389, allocations: 0 / 0.573 GB, free: 6.945 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.389, allocations: 3.938 kB / 0.573 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.389, allocations: 0 / 0.573 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.287e-05/0.3891, allocations: 153.7 kB / 0.5732 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3891, allocations: 0 / 0.5732 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.3891, allocations: 0 / 0.5732 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.3891, allocations: 3.938 kB / 0.5732 GB, free: 6.738 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.3891, allocations: 4.031 kB / 0.5732 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3891, allocations: 0 / 0.5732 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3891, allocations: 0 / 0.5732 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.804e-05/0.3892, allocations: 61.12 kB / 0.5732 GB, free: 6.656 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.3893, allocations: 85.09 kB / 0.5733 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.3893, allocations: 3.938 kB / 0.5733 GB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.317e-05/0.3893, allocations: 0 / 0.5733 GB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.732e-05/0.3893, allocations: 8.031 kB / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.3893, allocations: 0 / 0.5733 GB, free: 6.543 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.179e-05/0.3894, allocations: 76.12 kB / 0.5734 GB, free: 6.469 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3894, allocations: 0 / 0.5734 GB, free: 6.469 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002893/0.3897, allocations: 51.92 kB / 0.5734 GB, free: 6.418 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.0002943/0.39, allocations: 155.1 kB / 0.5736 GB, free: 6.258 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.07e-05/0.3901, allocations: 29.7 kB / 0.5736 GB, free: 6.223 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3901, allocations: 8.156 kB / 0.5736 GB, free: 6.215 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.823e-05/0.3901, allocations: 33.62 kB / 0.5736 GB, free: 6.176 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.3903, allocations: 4 kB / 0.5737 GB, free: 6.172 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000223/0.3905, allocations: 110.7 kB / 0.5738 GB, free: 6.035 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.3908, allocations: 0.677 MB / 0.5744 GB, free: 5.332 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.147e-05/0.3908, allocations: 7.438 kB / 0.5744 GB, free: 5.324 MB / 394.7 MB Notification: Performance of SimCode: time 3.8e-07/0.3908, allocations: 0 / 0.5744 GB, free: 5.324 MB / 394.7 MB Notification: Performance of Templates: time 0.002201/0.393, allocations: 0.8869 MB / 0.5753 GB, free: 4.441 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches