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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001805/0.00287, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001454/0.002465, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9717/0.9717, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1733/1.145, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.136/0.136, allocations: 32.8 MB / 272 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02114/0.1571, allocations: 12.53 MB / 284.5 MB, free: 9.707 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.984e-06/1.984e-06, allocations: 0 / 285.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.457e-05/2.655e-05, allocations: 6.312 kB / 285.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001322/0.001349, allocations: 0.5557 MB / 286.4 MB, free: 7.867 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.002569, allocations: 1.414 MB / 287.8 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.379e-05/0.002583, allocations: 0 / 287.8 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.125e-06/0.002586, allocations: 0 / 287.8 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.002e-06/0.002587, allocations: 0 / 287.8 MB, free: 6.438 MB / 282.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.0002851/0.002872, allocations: 103.4 kB / 287.9 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.419e-05/0.002926, allocations: 4 kB / 287.9 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.161e-05/0.002958, allocations: 0 / 287.9 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.938e-05/0.002987, allocations: 7.984 kB / 287.9 MB, free: 6.324 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.945e-05/0.003017, allocations: 4 kB / 287.9 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.108e-06/0.003026, allocations: 0 / 287.9 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002247/0.003251, allocations: 67.88 kB / 288 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.00326, allocations: 0 / 288 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.149e-05/0.003272, allocations: 0 / 288 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.152e-05/0.003353, allocations: 31.84 kB / 288 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.046e-05/0.003364, allocations: 4 kB / 288 MB, free: 6.219 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.003364, allocations: 0 / 288 MB, free: 6.219 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.003372, allocations: 0 / 288 MB, free: 6.219 MB / 282.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.0001937/0.003565, allocations: 250.5 kB / 288.3 MB, free: 5.945 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.787e-05/0.003593, allocations: 12.03 kB / 288.3 MB, free: 5.934 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.137e-05/0.003615, allocations: 0.9375 kB / 288.3 MB, free: 5.934 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.788e-05/0.003663, allocations: 105.8 kB / 288.4 MB, free: 5.805 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.196e-06/0.003671, allocations: 4.375 kB / 288.4 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-06/0.003678, allocations: 384 / 288.4 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.619e-05/0.003734, allocations: 55.97 kB / 288.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.003742, allocations: 12.11 kB / 288.4 MB, free: 5.723 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-06/0.003747, allocations: 384 / 288.4 MB, free: 5.723 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.003751, allocations: 3.938 kB / 288.4 MB, free: 5.719 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.162e-05/0.003762, allocations: 29.69 kB / 288.5 MB, free: 5.684 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.392e-05/0.003816, allocations: 57.05 kB / 288.5 MB, free: 5.613 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.36e-05/0.00386, allocations: 44.31 kB / 288.6 MB, free: 5.555 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.838e-05/0.003878, allocations: 38.5 kB / 288.6 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-06/0.003881, allocations: 0 / 288.6 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.003912, allocations: 60.33 kB / 288.7 MB, free: 5.434 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.003913, allocations: 0 / 288.7 MB, free: 5.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 8.868e-05/0.004001, allocations: 118.7 kB / 288.8 MB, free: 5.293 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.004048, allocations: 158.2 kB / 288.9 MB, free: 5.102 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.669e-05/0.004075, allocations: 89.86 kB / 289 MB, free: 5.004 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.504e-06/0.004083, allocations: 25.7 kB / 289.1 MB, free: 4.973 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.634e-05/0.004099, allocations: 80.14 kB / 289.1 MB, free: 4.891 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.004116, allocations: 3.984 kB / 289.1 MB, free: 4.887 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.141e-05/0.004137, allocations: 13.72 kB / 289.2 MB, free: 4.867 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.712e-05/0.004204, allocations: 318.8 kB / 289.5 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.004217, allocations: 29.7 kB / 289.5 MB, free: 4.512 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.719e-06/0.004227, allocations: 29.83 kB / 289.5 MB, free: 4.477 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.67e-05/0.004264, allocations: 72.25 kB / 289.6 MB, free: 4.391 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.004266, allocations: 4 kB / 289.6 MB, free: 4.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.094e-05/0.004307, allocations: 85.11 kB / 289.7 MB, free: 4.285 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.004337, allocations: 29.7 kB / 289.7 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.004341, allocations: 0 / 289.7 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.025e-06/0.004349, allocations: 0 / 289.7 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.00435, allocations: 0 / 289.7 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.516e-06/0.004354, allocations: 4 kB / 289.7 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.067e-05/0.004364, allocations: 3.984 kB / 289.7 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.004371, allocations: 7.969 kB / 289.7 MB, free: 4.234 MB / 282.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 5.554e-05/0.004426, allocations: 135.5 kB / 289.9 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.797e-06/0.00443, allocations: 0 / 289.9 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.277e-05/0.004443, allocations: 6.953 kB / 289.9 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.004444, allocations: 0 / 289.9 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.004445, allocations: 0 / 289.9 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.004447, allocations: 0 / 289.9 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.003e-05/0.004487, allocations: 69.78 kB / 289.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.004488, allocations: 3.984 kB / 289.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.004489, allocations: 3.938 kB / 289.9 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-06/0.004492, allocations: 0 / 289.9 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.004494, allocations: 8 kB / 289.9 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-06/0.004497, allocations: 0 / 289.9 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.004498, allocations: 3.938 kB / 290 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.004498, allocations: 0 / 290 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.592e-05/0.004554, allocations: 116.5 kB / 290.1 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-06/0.004564, allocations: 4 kB / 290.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.837e-06/0.004567, allocations: 0 / 290.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-06/0.004575, allocations: 0 / 290.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-06/0.004576, allocations: 0 / 290.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.59e-06/0.004581, allocations: 4.859 kB / 290.1 MB, free: 3.812 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004581, allocations: 4.031 kB / 290.1 MB, free: 3.809 MB / 282.7 MB Notification: Performance of remove unused functions: time 9.744e-05/0.004679, allocations: 12 kB / 290.1 MB, free: 3.797 MB / 282.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.0002054/0.004884, allocations: 127.9 kB / 290.2 MB, free: 3.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.995e-05/0.004954, allocations: 127.6 kB / 290.3 MB, free: 3.527 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.004958, allocations: 4 kB / 290.3 MB, free: 3.523 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.694e-05/0.004985, allocations: 86.06 kB / 290.4 MB, free: 3.418 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 3.105e-05/0.005016, allocations: 12.03 kB / 290.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001201/0.005136, allocations: 108 kB / 290.5 MB, free: 3.266 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.443e-05/0.00516, allocations: 55.36 kB / 290.6 MB, free: 3.191 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.39e-06/0.005166, allocations: 0 / 290.6 MB, free: 3.191 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.154e-05/0.005197, allocations: 55.36 kB / 290.7 MB, free: 3.137 MB / 282.7 MB Notification: Performance of SimCode: time 3.81e-07/0.005198, allocations: 0 / 290.7 MB, free: 3.137 MB / 282.7 MB Notification: Performance of Templates: time 0.001965/0.007163, allocations: 0.6385 MB / 291.3 MB, free: 2.5 MB / 282.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5975524010136724]