Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008312/0.0008312, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003125/0.003125, allocations: 160.2 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8684/0.8684, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2296/0.2296, allocations: 32.79 MB / 294.2 MB, free: 1.207 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 440.8 MB, free: 3.77 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.473e-05/2.644e-05, allocations: 2.281 kB / 440.8 MB, free: 3.766 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001135/0.001161, allocations: 0.4987 MB / 441.3 MB, free: 3.27 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.003027, allocations: 1.571 MB / 442.9 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.302e-05/0.00305, allocations: 3.938 kB / 442.9 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.593e-05/0.003066, allocations: 0 / 442.9 MB, free: 1.676 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.863e-06/0.003073, allocations: 4 kB / 442.9 MB, free: 1.672 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0005866/0.003659, allocations: 171.1 kB / 443.1 MB, free: 1.504 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.861e-05/0.003718, allocations: 4 kB / 443.1 MB, free: 1.5 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.003758, allocations: 0 / 443.1 MB, free: 1.5 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.827e-05/0.003786, allocations: 3.984 kB / 443.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.00381, allocations: 8 kB / 443.1 MB, free: 1.488 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.817e-06/0.003819, allocations: 0 / 443.1 MB, free: 1.488 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003209/0.00414, allocations: 111.9 kB / 443.2 MB, free: 1.379 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.915e-06/0.004147, allocations: 0 / 443.2 MB, free: 1.379 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.004165, allocations: 4 kB / 443.2 MB, free: 1.375 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.00428, allocations: 43.89 kB / 443.2 MB, free: 1.332 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.004283, allocations: 3.984 kB / 443.2 MB, free: 1.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.004285, allocations: 0 / 443.2 MB, free: 1.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.004289, allocations: 0 / 443.2 MB, free: 1.328 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.0002541/0.004543, allocations: 272.1 kB / 443.5 MB, free: 1.027 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.004581, allocations: 8.031 kB / 443.5 MB, free: 1.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.436e-05/0.004615, allocations: 4.938 kB / 443.5 MB, free: 1.016 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.897e-05/0.004674, allocations: 109.8 kB / 443.6 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.004686, allocations: 384 / 443.6 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.004695, allocations: 384 / 443.6 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.294e-05/0.004787, allocations: 59.91 kB / 443.7 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.004796, allocations: 4.125 kB / 443.7 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.004804, allocations: 384 / 443.7 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.004809, allocations: 3.938 kB / 443.7 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.501e-05/0.004834, allocations: 33.7 kB / 443.7 MB, free: 0.7656 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.513e-05/0.004919, allocations: 93.33 kB / 443.8 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.921e-05/0.004968, allocations: 52.3 kB / 443.9 MB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.13e-05/0.00499, allocations: 30.56 kB / 443.9 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.198e-06/0.004999, allocations: 0 / 443.9 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/0.005056, allocations: 64.27 kB / 444 MB, free: 472 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.005057, allocations: 0 / 444 MB, free: 472 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001986/0.005255, allocations: 118.8 kB / 444.1 MB, free: 328 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.005297, allocations: 81.05 kB / 444.2 MB, free: 228 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.012e-05/0.005327, allocations: 89.86 kB / 444.2 MB, free: 128 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.005338, allocations: 29.83 kB / 444.3 MB, free: 92 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.956e-05/0.005358, allocations: 84.14 kB / 444.4 MB, free: 4 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1824/0.1877, allocations: 4.969 kB / 444.4 MB, free: 46.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.688e-05/0.1878, allocations: 9.719 kB / 444.4 MB, free: 46.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.4e-05/0.1878, allocations: 313.9 kB / 444.7 MB, free: 46.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.506e-05/0.1878, allocations: 32.72 kB / 444.7 MB, free: 46.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.243e-05/0.1878, allocations: 25.7 kB / 444.7 MB, free: 46.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.294e-05/0.1879, allocations: 63.7 kB / 444.8 MB, free: 46.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1879, allocations: 0 / 444.8 MB, free: 46.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.427e-05/0.1879, allocations: 95.08 kB / 444.9 MB, free: 46.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.188, allocations: 31.64 kB / 444.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.188, allocations: 5.234 kB / 444.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.188, allocations: 0 / 444.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.188, allocations: 5.625 kB / 444.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.188, allocations: 3.75 kB / 444.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.824e-05/0.188, allocations: 3.797 kB / 444.9 MB, free: 46.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.188, allocations: 0 / 444.9 MB, free: 46.11 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 4.283e-05/0.1881, allocations: 138.8 kB / 445.1 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-06/0.1881, allocations: 2.906 kB / 445.1 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.097e-05/0.1881, allocations: 4.438 kB / 445.1 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.1881, allocations: 0 / 445.1 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1881, allocations: 4.688 kB / 445.1 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1881, allocations: 0 / 445.1 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.801e-05/0.1881, allocations: 100.2 kB / 445.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1881, allocations: 0 / 445.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-07/0.1881, allocations: 0.5625 kB / 445.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.31e-07/0.1882, allocations: 0 / 445.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.1882, allocations: 3.719 kB / 445.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.1882, allocations: 0 / 445.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1882, allocations: 3.469 kB / 445.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.122e-05/0.1882, allocations: 126.1 kB / 445.3 MB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.19e-06/0.1882, allocations: 2.969 kB / 445.3 MB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.1882, allocations: 2.188 kB / 445.3 MB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.35e-06/0.1882, allocations: 0 / 445.3 MB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.1883, allocations: 8.656 kB / 445.3 MB, free: 45.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.1883, allocations: 1.562 kB / 445.3 MB, free: 45.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.035e-05/0.1883, allocations: 78.47 kB / 445.4 MB, free: 45.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1883, allocations: 0 / 445.4 MB, free: 45.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001484/0.1884, allocations: 15.03 kB / 445.4 MB, free: 45.64 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.000249/0.1887, allocations: 148.8 kB / 445.6 MB, free: 45.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.011e-05/0.1887, allocations: 117.1 kB / 445.7 MB, free: 45.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1887, allocations: 0 / 445.7 MB, free: 45.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.2e-05/0.1888, allocations: 82.92 kB / 445.8 MB, free: 45.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.442e-05/0.1888, allocations: 0 / 445.8 MB, free: 45.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001568/0.189, allocations: 138.1 kB / 445.9 MB, free: 45.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.41e-05/0.189, allocations: 58.2 kB / 446 MB, free: 45.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.065e-05/0.189, allocations: 8.5 kB / 446 MB, free: 45.11 MB / 410.7 MB Notification: Performance of SimCode: time 4.9e-07/0.189, allocations: 3.281 kB / 446 MB, free: 45.11 MB / 410.7 MB Notification: Performance of Templates: time 0.001539/0.1906, allocations: 0.6888 MB / 446.7 MB, free: 45.09 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.612409081310034]