Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003459/0.003459, allocations: 157.5 kB / 24.7 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8625/0.8625, allocations: 177 MB / 204.9 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2478/0.2478, allocations: 34.24 MB / 295.6 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] 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.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 443.4 MB, free: 1.098 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.443e-05, allocations: 2.281 kB / 443.4 MB, free: 1.094 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001257/0.001282, allocations: 0.492 MB / 443.9 MB, free: 0.6055 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1833/0.1846, allocations: 1.587 MB / 445.5 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.178e-05/0.1847, allocations: 0 / 445.5 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.643e-05/0.1847, allocations: 0 / 445.5 MB, free: 43.5 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.1847, allocations: 0 / 445.5 MB, free: 43.5 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.1851, allocations: 163.7 kB / 445.6 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.308e-05/0.1852, allocations: 4.281 kB / 445.6 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.565e-05/0.1852, allocations: 0 / 445.6 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.869e-05/0.1853, allocations: 4.906 kB / 445.6 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.523e-05/0.1853, allocations: 0 / 445.6 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-06/0.1853, allocations: 0 / 445.6 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000286/0.1856, allocations: 126.6 kB / 445.8 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.913e-06/0.1856, allocations: 0 / 445.8 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.1856, allocations: 6.688 kB / 445.8 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.1857, allocations: 42.14 kB / 445.8 MB, free: 43.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1857, allocations: 0 / 445.8 MB, free: 43.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1857, allocations: 0 / 445.8 MB, free: 43.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.1857, allocations: 0 / 445.8 MB, free: 43.41 MB / 410.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.0002226/0.1859, allocations: 278.2 kB / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.186, allocations: 8.312 kB / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.186, allocations: 0.9375 kB / 446.1 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.061e-05/0.1861, allocations: 114.8 kB / 446.2 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.1861, allocations: 384 / 446.2 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.1861, allocations: 2.156 kB / 446.2 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.669e-05/0.1861, allocations: 56.16 kB / 446.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.1862, allocations: 192 / 446.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.1862, allocations: 384 / 446.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1862, allocations: 3.938 kB / 446.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.215e-05/0.1862, allocations: 35.39 kB / 446.3 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.681e-05/0.1863, allocations: 101.4 kB / 446.4 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.055e-05/0.1863, allocations: 48.38 kB / 446.4 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.578e-05/0.1863, allocations: 30.56 kB / 446.5 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.998e-06/0.1863, allocations: 2.75 kB / 446.5 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.1864, allocations: 56.27 kB / 446.5 MB, free: 42.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.1864, allocations: 0 / 446.5 MB, free: 42.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001542/0.1865, allocations: 122.1 kB / 446.7 MB, free: 42.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.1866, allocations: 86.92 kB / 446.7 MB, free: 42.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.792e-05/0.1866, allocations: 93.09 kB / 446.8 MB, free: 42.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-06/0.1866, allocations: 25.7 kB / 446.9 MB, free: 42.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.083e-06/0.1866, allocations: 80.14 kB / 446.9 MB, free: 42.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.1866, allocations: 3.266 kB / 446.9 MB, free: 42.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.816e-05/0.1866, allocations: 12.31 kB / 446.9 MB, free: 42.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.742e-05/0.1866, allocations: 313.6 kB / 447.3 MB, free: 41.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.1867, allocations: 29.39 kB / 447.3 MB, free: 41.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.177e-06/0.1867, allocations: 30.95 kB / 447.3 MB, free: 41.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.919e-05/0.1867, allocations: 62.53 kB / 447.4 MB, free: 41.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1867, allocations: 0.75 kB / 447.4 MB, free: 41.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.266e-05/0.1867, allocations: 95.73 kB / 447.5 MB, free: 41.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.1868, allocations: 35.48 kB / 447.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1868, allocations: 0 / 447.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1868, allocations: 0 / 447.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1868, allocations: 0 / 447.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1868, allocations: 6.938 kB / 447.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.142e-05/0.1868, allocations: 0 / 447.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.1868, allocations: 3.938 kB / 447.5 MB, free: 41.57 MB / 410.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: 1 (result) * 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: 1 * 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 3.54e-05/0.1868, allocations: 139.1 kB / 447.7 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-06/0.1868, allocations: 0 / 447.7 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.847e-06/0.1868, allocations: 5.938 kB / 447.7 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1868, allocations: 0 / 447.7 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1869, allocations: 4 kB / 447.7 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.1869, allocations: 7.219 kB / 447.7 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.925e-05/0.1869, allocations: 96.14 kB / 447.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.91e-07/0.1869, allocations: 0 / 447.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.1869, allocations: 5.969 kB / 447.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.31e-07/0.1869, allocations: 0 / 447.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.1869, allocations: 3.938 kB / 447.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.3e-07/0.1869, allocations: 0 / 447.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1869, allocations: 2.969 kB / 447.8 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.46e-05/0.1869, allocations: 123.1 kB / 447.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.066e-06/0.1869, allocations: 7.969 kB / 447.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.097e-06/0.1869, allocations: 0 / 447.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.929e-06/0.187, allocations: 2.844 kB / 447.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.187, allocations: 0 / 447.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-06/0.187, allocations: 0 / 447.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.338e-06/0.187, allocations: 82.03 kB / 448 MB, free: 41.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.187, allocations: 0 / 448 MB, free: 41.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001327/0.1871, allocations: 20.67 kB / 448 MB, free: 41.07 MB / 410.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: 1 (result) * Number of discrete states: 1 (result) * 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: 1 * 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 Backend phase and start with SimCode phase: time 0.0002248/0.1873, allocations: 142.4 kB / 448.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.054e-05/0.1874, allocations: 119.1 kB / 448.3 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.1874, allocations: 0 / 448.3 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.025e-05/0.1874, allocations: 79.7 kB / 448.3 MB, free: 40.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.498e-05/0.1875, allocations: 2.656 kB / 448.3 MB, free: 40.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001485/0.1877, allocations: 127.6 kB / 448.5 MB, free: 40.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.048e-05/0.1877, allocations: 54.17 kB / 448.5 MB, free: 40.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.059e-05/0.1877, allocations: 8.5 kB / 448.5 MB, free: 40.52 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1877, allocations: 4.062 kB / 448.5 MB, free: 40.52 MB / 410.7 MB Notification: Performance of Templates: time 0.001624/0.1893, allocations: 0.6898 MB / 449.2 MB, free: 40.47 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.494911910966039]