Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.6 MB / 243.4 MB, free: 6.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007561/0.0007561, allocations: 95.33 kB / 295.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2836/0.2836, allocations: 44.81 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003763/0.0003764, allocations: 4 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2872, allocations: 62.96 MB / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005135/0.2877, allocations: 220.8 kB / 0.5161 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2892, allocations: 1.361 MB / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.308e-05/0.2893, allocations: 0 / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.2893, allocations: 0 / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.106e-05/0.2893, allocations: 0 / 0.5174 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.2898, allocations: 154.9 kB / 0.5176 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.125e-05/0.2899, allocations: 7.031 kB / 0.5176 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.11e-05/0.2899, allocations: 0 / 0.5176 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.669e-05/0.2899, allocations: 6.891 kB / 0.5176 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.957e-05/0.29, allocations: 14.27 kB / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.29, allocations: 3.938 kB / 0.5176 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000336/0.2904, allocations: 255.9 kB / 0.5178 GB, free: 36 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.038e-05/0.2904, allocations: 0 / 0.5178 GB, free: 36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.2904, allocations: 32.88 kB / 0.5179 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.2905, allocations: 84.69 kB / 0.5179 GB, free: 35.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2906, allocations: 0 / 0.5179 GB, free: 35.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2906, allocations: 0 / 0.5179 GB, free: 35.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.2906, allocations: 0 / 0.5179 GB, free: 35.95 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002639/0.2908, allocations: 332.1 kB / 0.5183 GB, free: 35.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2909, allocations: 15.34 kB / 0.5183 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.741e-05/0.2909, allocations: 4.938 kB / 0.5183 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.497e-05/0.291, allocations: 164.2 kB / 0.5184 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.291, allocations: 384 / 0.5184 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.495e-06/0.291, allocations: 3.188 kB / 0.5184 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.476e-05/0.2911, allocations: 35.61 kB / 0.5185 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.2911, allocations: 0 / 0.5185 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2911, allocations: 4 kB / 0.5185 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.2911, allocations: 0 / 0.5185 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.802e-05/0.2912, allocations: 16.98 kB / 0.5185 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000249/0.2914, allocations: 237 kB / 0.5187 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.806e-05/0.2915, allocations: 21.55 kB / 0.5187 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.347e-05/0.2915, allocations: 7.891 kB / 0.5187 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.2915, allocations: 0 / 0.5187 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.254e-05/0.2915, allocations: 34.56 kB / 0.5188 GB, free: 34.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.2915, allocations: 0 / 0.5188 GB, free: 34.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001112/0.2916, allocations: 38.56 kB / 0.5188 GB, free: 34.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.799e-05/0.2917, allocations: 51.41 kB / 0.5189 GB, free: 34.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.781e-05/0.2917, allocations: 96.73 kB / 0.519 GB, free: 34.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-06/0.2917, allocations: 32.53 kB / 0.519 GB, free: 34.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.936e-05/0.2917, allocations: 84.05 kB / 0.5191 GB, free: 34.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.35e-06/0.2918, allocations: 5.453 kB / 0.5191 GB, free: 34.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-06/0.2918, allocations: 4.25 kB / 0.5191 GB, free: 34.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.712e-05/0.2918, allocations: 318.8 kB / 0.5194 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.558e-06/0.2918, allocations: 2.781 kB / 0.5194 GB, free: 34.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.577e-05/0.2918, allocations: 24.56 kB / 0.5194 GB, free: 34.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.539e-05/0.2919, allocations: 32.33 kB / 0.5194 GB, free: 34.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2919, allocations: 0 / 0.5194 GB, free: 34.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.393e-05/0.2919, allocations: 47.28 kB / 0.5195 GB, free: 34.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.292, allocations: 5.844 kB / 0.5195 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.292, allocations: 0 / 0.5195 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.397e-06/0.292, allocations: 0 / 0.5195 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.139e-05/0.292, allocations: 9.656 kB / 0.5195 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.292, allocations: 3.984 kB / 0.5195 GB, free: 34.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.664e-05/0.2921, allocations: 2.781 kB / 0.5195 GB, free: 34.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.2921, allocations: 10.22 kB / 0.5195 GB, free: 34.24 MB / 378.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): 3 * 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.131e-05/0.2921, allocations: 119.5 kB / 0.5196 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.116e-05/0.2921, allocations: 2.875 kB / 0.5196 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.689e-05/0.2922, allocations: 54.2 kB / 0.5197 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.2922, allocations: 0 / 0.5197 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2923, allocations: 0 / 0.5197 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.2923, allocations: 0 / 0.5197 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.534e-05/0.2924, allocations: 160.8 kB / 0.5198 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2924, allocations: 0 / 0.5198 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.2924, allocations: 0 / 0.5198 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2924, allocations: 3.062 kB / 0.5198 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-06/0.2924, allocations: 0 / 0.5198 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.2924, allocations: 0 / 0.5198 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2924, allocations: 0 / 0.5198 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.596e-05/0.2925, allocations: 139.5 kB / 0.52 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.599e-05/0.2925, allocations: 81.14 kB / 0.52 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-06/0.2925, allocations: 0 / 0.52 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.257e-05/0.2926, allocations: 2.875 kB / 0.5201 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.2926, allocations: 0 / 0.5201 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.2926, allocations: 0 / 0.5201 GB, free: 33.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.71e-05/0.2926, allocations: 81.36 kB / 0.5201 GB, free: 33.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2926, allocations: 0 / 0.5201 GB, free: 33.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002698/0.2929, allocations: 38.41 kB / 0.5202 GB, free: 33.55 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.0002194/0.2931, allocations: 139.7 kB / 0.5203 GB, free: 33.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.943e-05/0.2932, allocations: 9.938 kB / 0.5203 GB, free: 33.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2932, allocations: 3.938 kB / 0.5203 GB, free: 33.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.483e-05/0.2932, allocations: 35.8 kB / 0.5203 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.2934, allocations: 6.844 kB / 0.5204 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001725/0.2936, allocations: 108.8 kB / 0.5205 GB, free: 33.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.211e-05/0.2937, allocations: 0.6754 MB / 0.5211 GB, free: 32.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.082e-05/0.2937, allocations: 11.44 kB / 0.5211 GB, free: 32.57 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2937, allocations: 2.875 kB / 0.5211 GB, free: 32.57 MB / 378.7 MB Notification: Performance of Templates: time 0.001918/0.2956, allocations: 0.916 MB / 0.522 GB, free: 32.52 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches