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.001301/0.001301, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.6 MB / 243.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007392/0.0007391, allocations: 96.62 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2847/0.2847, allocations: 44.82 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002559/0.0002562, allocations: 8 kB / 465.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2738, allocations: 62.95 MB / 0.5159 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005744/0.2744, allocations: 233.1 kB / 0.5161 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.2757, allocations: 1.351 MB / 0.5174 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.223e-05/0.2758, allocations: 0 / 0.5174 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.478e-06/0.2758, allocations: 0 / 0.5174 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.872e-05/0.2758, allocations: 0 / 0.5174 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004998/0.2763, allocations: 157 kB / 0.5176 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.258e-05/0.2764, allocations: 6.875 kB / 0.5176 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.338e-05/0.2764, allocations: 0 / 0.5176 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.774e-05/0.2765, allocations: 2.938 kB / 0.5176 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.2765, allocations: 10.28 kB / 0.5176 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.2765, allocations: 4 kB / 0.5176 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003368/0.2769, allocations: 257.7 kB / 0.5178 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.2769, allocations: 3.328 kB / 0.5178 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.2769, allocations: 36.16 kB / 0.5179 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.2771, allocations: 82.2 kB / 0.5179 GB, free: 35.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2771, allocations: 0 / 0.5179 GB, free: 35.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2771, allocations: 0 / 0.5179 GB, free: 35.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.2771, allocations: 0 / 0.5179 GB, free: 35.85 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002861/0.2774, allocations: 335.9 kB / 0.5183 GB, free: 35.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.2774, allocations: 15.17 kB / 0.5183 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.186e-05/0.2775, allocations: 0.9375 kB / 0.5183 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.612e-05/0.2776, allocations: 160.4 kB / 0.5184 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.2776, allocations: 384 / 0.5184 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.2776, allocations: 3.375 kB / 0.5184 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.998e-05/0.2777, allocations: 36.28 kB / 0.5185 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2777, allocations: 0 / 0.5185 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.2777, allocations: 0 / 0.5185 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.2777, allocations: 0 / 0.5185 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.101e-05/0.2778, allocations: 11.91 kB / 0.5185 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001273/0.2779, allocations: 149 kB / 0.5186 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.489e-05/0.2779, allocations: 17.64 kB / 0.5186 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.441e-05/0.2779, allocations: 4.859 kB / 0.5186 GB, free: 35.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-06/0.278, allocations: 0 / 0.5186 GB, free: 35.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.278, allocations: 37.47 kB / 0.5187 GB, free: 34.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.278, allocations: 7.938 kB / 0.5187 GB, free: 34.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001234/0.2781, allocations: 39.52 kB / 0.5187 GB, free: 34.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.2782, allocations: 54.78 kB / 0.5188 GB, free: 34.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.957e-05/0.2782, allocations: 92.83 kB / 0.5189 GB, free: 34.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.915e-06/0.2783, allocations: 25.7 kB / 0.5189 GB, free: 34.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.494e-05/0.2783, allocations: 83.05 kB / 0.519 GB, free: 34.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.2783, allocations: 3.906 kB / 0.519 GB, free: 34.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-06/0.2783, allocations: 0 / 0.519 GB, free: 34.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.64e-05/0.2784, allocations: 319.1 kB / 0.5193 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.051e-05/0.2784, allocations: 2.938 kB / 0.5193 GB, free: 34.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.577e-06/0.2784, allocations: 3.375 kB / 0.5193 GB, free: 34.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.175e-05/0.2784, allocations: 11.83 kB / 0.5193 GB, free: 34.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2784, allocations: 3.938 kB / 0.5193 GB, free: 34.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.651e-05/0.2785, allocations: 34.67 kB / 0.5193 GB, free: 34.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2785, allocations: 6.906 kB / 0.5193 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2785, allocations: 0 / 0.5193 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.2785, allocations: 7.062 kB / 0.5193 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.362e-05/0.2786, allocations: 3.328 kB / 0.5194 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.2786, allocations: 0 / 0.5194 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.334e-05/0.2786, allocations: 3 kB / 0.5194 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.2786, allocations: 0 / 0.5194 GB, free: 34.29 MB / 378.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): 1 * 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 4.716e-05/0.2787, allocations: 109.8 kB / 0.5195 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.046e-06/0.2787, allocations: 6.875 kB / 0.5195 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.2788, allocations: 49.73 kB / 0.5195 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2788, allocations: 7.016 kB / 0.5195 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2788, allocations: 0 / 0.5195 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2788, allocations: 0 / 0.5195 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.193e-05/0.2789, allocations: 152.2 kB / 0.5197 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.2789, allocations: 4 kB / 0.5197 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.2789, allocations: 0 / 0.5197 GB, free: 33.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2789, allocations: 3.938 kB / 0.5197 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.2789, allocations: 3 kB / 0.5197 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2789, allocations: 4.031 kB / 0.5197 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2789, allocations: 0 / 0.5197 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.649e-05/0.279, allocations: 61.36 kB / 0.5197 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.805e-05/0.279, allocations: 81.05 kB / 0.5198 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.039e-05/0.279, allocations: 0 / 0.5198 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.112e-05/0.2791, allocations: 6.219 kB / 0.5198 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.292e-05/0.2791, allocations: 3.938 kB / 0.5198 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.2791, allocations: 6.969 kB / 0.5198 GB, free: 33.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.656e-05/0.2792, allocations: 75.28 kB / 0.5199 GB, free: 33.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2792, allocations: 0 / 0.5199 GB, free: 33.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000259/0.2794, allocations: 37.38 kB / 0.5199 GB, free: 33.67 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.0002465/0.2797, allocations: 143.1 kB / 0.5201 GB, free: 33.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.308e-05/0.2798, allocations: 2.812 kB / 0.5201 GB, free: 33.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2798, allocations: 0 / 0.5201 GB, free: 33.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.729e-05/0.2798, allocations: 39.84 kB / 0.5201 GB, free: 33.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.2799, allocations: 2.906 kB / 0.5201 GB, free: 33.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002035/0.2802, allocations: 113 kB / 0.5202 GB, free: 33.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.2803, allocations: 0.6758 MB / 0.5209 GB, free: 32.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.276e-05/0.2803, allocations: 7.438 kB / 0.5209 GB, free: 32.69 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2803, allocations: 3.938 kB / 0.5209 GB, free: 32.69 MB / 378.7 MB Notification: Performance of Templates: time 0.001924/0.2822, allocations: 0.9013 MB / 0.5218 GB, free: 32.64 MB / 378.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/jenkins/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