Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001438/0.001438, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001684/0.001685, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.734/1.734, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3074/0.3074, allocations: 46.11 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002951/0.002951, allocations: 81.47 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1773, allocations: 62.44 MB / 479.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.002237/0.1796, allocations: 0.5566 MB / 480.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.182, allocations: 1.454 MB / 481.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.81e-05/0.1821, allocations: 4 kB / 481.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.686e-05/0.1821, allocations: 0 / 481.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.554e-05/0.1822, allocations: 3.938 kB / 481.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006885/0.1829, allocations: 159 kB / 482.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.342e-05/0.1829, allocations: 7.938 kB / 482.1 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.181e-05/0.183, allocations: 4 kB / 482.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.94e-05/0.183, allocations: 0 / 482.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.687e-05/0.1831, allocations: 11.98 kB / 482.1 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.1831, allocations: 0 / 482.1 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005169/0.1836, allocations: 271.6 kB / 482.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.773e-05/0.1836, allocations: 11.97 kB / 482.4 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.1837, allocations: 3.938 kB / 482.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001812/0.1838, allocations: 87.81 kB / 482.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1839, allocations: 0 / 482.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1839, allocations: 0 / 482.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1839, allocations: 0 / 482.5 MB, free: 3.156 MB / 350.1 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.0004201/0.1843, allocations: 339.5 kB / 482.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.1844, allocations: 12.88 kB / 482.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.1844, allocations: 4.875 kB / 482.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.1845, allocations: 160.4 kB / 483 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.1845, allocations: 4.375 kB / 483 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.1845, allocations: 4.375 kB / 483 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.1847, allocations: 42 kB / 483 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1847, allocations: 0 / 483 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.1847, allocations: 0 / 483 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1847, allocations: 0 / 483 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.596e-05/0.1848, allocations: 4 kB / 483 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004302/0.1852, allocations: 248.9 kB / 483.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.477e-05/0.1853, allocations: 22.58 kB / 483.3 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.755e-05/0.1853, allocations: 4.859 kB / 483.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.16e-05/0.1853, allocations: 0 / 483.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.1853, allocations: 34.62 kB / 483.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.263e-06/0.1853, allocations: 0 / 483.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001753/0.1855, allocations: 41.62 kB / 483.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.1856, allocations: 51.53 kB / 483.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.992e-05/0.1857, allocations: 101.8 kB / 483.5 MB, free: 1.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.1857, allocations: 25.7 kB / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.1857, allocations: 84.36 kB / 483.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.1858, allocations: 11.91 kB / 483.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/0.1858, allocations: 13.7 kB / 483.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1859, allocations: 326.7 kB / 484 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.499e-05/0.186, allocations: 0 / 484 MB, free: 1.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.784e-05/0.186, allocations: 26.7 kB / 484 MB, free: 1.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.795e-05/0.186, allocations: 26.5 kB / 484 MB, free: 1.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1861, allocations: 4 kB / 484.1 MB, free: 1.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.129e-05/0.1861, allocations: 45.64 kB / 484.1 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1862, allocations: 8.094 kB / 484.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1862, allocations: 0 / 484.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.1862, allocations: 4 kB / 484.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.99e-05/0.1863, allocations: 7.984 kB / 484.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.1863, allocations: 0 / 484.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.943e-05/0.1863, allocations: 0 / 484.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.1863, allocations: 4 kB / 484.1 MB, free: 1.289 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.961e-05/0.1864, allocations: 113.8 kB / 484.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.1864, allocations: 4 kB / 484.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.1866, allocations: 52.83 kB / 484.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1866, allocations: 0 / 484.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1866, allocations: 0 / 484.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1866, allocations: 0 / 484.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/0.1868, allocations: 153.6 kB / 484.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.1868, allocations: 11.94 kB / 484.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.1868, allocations: 0 / 484.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.1868, allocations: 0 / 484.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.1868, allocations: 4.031 kB / 484.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1868, allocations: 0 / 484.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1868, allocations: 0 / 484.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000113/0.1869, allocations: 139.3 kB / 484.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.207e-05/0.187, allocations: 81.09 kB / 484.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.187, allocations: 4 kB / 484.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.975e-05/0.1871, allocations: 0 / 484.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.061e-05/0.1871, allocations: 4.031 kB / 484.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-06/0.1871, allocations: 0 / 484.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.716e-05/0.1872, allocations: 79.28 kB / 484.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1872, allocations: 0 / 484.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003555/0.1875, allocations: 43.98 kB / 484.8 MB, free: 0.5156 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003221/0.1879, allocations: 139.2 kB / 484.9 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.731e-05/0.1879, allocations: 11.94 kB / 484.9 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.188, allocations: 4.281 kB / 484.9 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.912e-05/0.188, allocations: 33.69 kB / 485 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.1882, allocations: 7.938 kB / 485 MB, free: 312 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002543/0.1885, allocations: 108.5 kB / 485.1 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.1888, allocations: 0.677 MB / 485.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.634e-05/0.1888, allocations: 7.438 kB / 485.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1889, allocations: 0 / 485.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of Templates: time 0.002855/0.1917, allocations: 0.9207 MB / 486.7 MB, free: 14.54 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches