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.0009463/0.0009463, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001372/0.001372, allocations: 170 kB / 24.91 MB, free: 9.188 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 1.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.286/0.286, allocations: 32.81 MB / 294.6 MB, free: 1.242 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 2.024e-06/2.024e-06, allocations: 0 / 323.2 MB, free: 9.723 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.572e-05/2.774e-05, allocations: 5.859 kB / 323.2 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001302/0.00133, allocations: 0.4932 MB / 323.7 MB, free: 9.223 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.003297, allocations: 1.645 MB / 325.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.779e-05/0.003324, allocations: 0 / 325.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.702e-05/0.003341, allocations: 3.938 kB / 325.3 MB, free: 7.555 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.436e-06/0.00335, allocations: 0 / 325.3 MB, free: 7.555 MB / 298.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.0006737/0.004024, allocations: 171.1 kB / 325.5 MB, free: 7.387 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.898e-05/0.004082, allocations: 0.625 kB / 325.5 MB, free: 7.387 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.183e-05/0.004124, allocations: 4 kB / 325.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.063e-05/0.004155, allocations: 0 / 325.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.072e-05/0.004186, allocations: 0 / 325.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.004195, allocations: 0 / 325.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000342/0.004537, allocations: 111.9 kB / 325.6 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-06/0.004547, allocations: 0 / 325.6 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.644e-05/0.004563, allocations: 8 kB / 325.6 MB, free: 7.266 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.004681, allocations: 43.89 kB / 325.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.004685, allocations: 3.984 kB / 325.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.004687, allocations: 0 / 325.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.004691, allocations: 0 / 325.7 MB, free: 7.219 MB / 298.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.0002696/0.004961, allocations: 246.3 kB / 325.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.005006, allocations: 12.03 kB / 325.9 MB, free: 6.938 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.005034, allocations: 4.875 kB / 325.9 MB, free: 6.934 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.694e-05/0.005101, allocations: 105.8 kB / 326 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.005117, allocations: 8.375 kB / 326 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.005127, allocations: 4.375 kB / 326 MB, free: 6.793 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.178e-05/0.005209, allocations: 55.97 kB / 326.1 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.005218, allocations: 192 / 326.1 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.005227, allocations: 384 / 326.1 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.005234, allocations: 3.938 kB / 326.1 MB, free: 6.723 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.91e-05/0.005253, allocations: 25.7 kB / 326.1 MB, free: 6.691 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.212e-05/0.005335, allocations: 69.64 kB / 326.2 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.08e-05/0.005386, allocations: 44.22 kB / 326.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.931e-05/0.005405, allocations: 38.66 kB / 326.3 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.511e-06/0.00541, allocations: 3.984 kB / 326.3 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.005451, allocations: 60.27 kB / 326.3 MB, free: 6.426 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.005452, allocations: 0 / 326.3 MB, free: 6.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001321/0.005584, allocations: 114.8 kB / 326.5 MB, free: 6.289 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.005627, allocations: 81.05 kB / 326.5 MB, free: 6.191 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.346e-05/0.005671, allocations: 93.86 kB / 326.6 MB, free: 6.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/0.00568, allocations: 25.7 kB / 326.7 MB, free: 6.059 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.252e-05/0.005703, allocations: 88.14 kB / 326.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.005725, allocations: 1.203 kB / 326.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/0.005747, allocations: 9.719 kB / 326.7 MB, free: 5.953 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.024e-05/0.005827, allocations: 318.8 kB / 327.1 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.392e-05/0.005841, allocations: 33.81 kB / 327.1 MB, free: 5.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.332e-05/0.005855, allocations: 25.7 kB / 327.1 MB, free: 5.562 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.24e-05/0.005897, allocations: 60.27 kB / 327.2 MB, free: 5.488 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.005899, allocations: 0 / 327.2 MB, free: 5.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.354e-05/0.005953, allocations: 93.03 kB / 327.3 MB, free: 5.379 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.005981, allocations: 29.7 kB / 327.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.005986, allocations: 0 / 327.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.006, allocations: 0 / 327.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.218e-06/0.006004, allocations: 0 / 327.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.006009, allocations: 8.031 kB / 327.3 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.131e-05/0.006021, allocations: 4 kB / 327.3 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.006027, allocations: 3.938 kB / 327.3 MB, free: 5.328 MB / 298.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 6.637e-05/0.006094, allocations: 135.5 kB / 327.4 MB, free: 5.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.667e-06/0.006097, allocations: 0 / 327.4 MB, free: 5.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.102e-05/0.006108, allocations: 6.984 kB / 327.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.00611, allocations: 0 / 327.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.006112, allocations: 0 / 327.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.006115, allocations: 0 / 327.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.257e-05/0.006178, allocations: 73.83 kB / 327.5 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.006178, allocations: 0 / 327.5 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-07/0.006179, allocations: 4 kB / 327.5 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.12e-07/0.006179, allocations: 0 / 327.5 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-06/0.006184, allocations: 0 / 327.5 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-07/0.006184, allocations: 4 kB / 327.5 MB, free: 5.078 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.006185, allocations: 3.984 kB / 327.5 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.774e-05/0.006253, allocations: 116.4 kB / 327.6 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.498e-06/0.006258, allocations: 352 / 327.6 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.006272, allocations: 8 kB / 327.7 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.867e-06/0.006276, allocations: 0 / 327.7 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.124e-05/0.006287, allocations: 3.984 kB / 327.7 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.006289, allocations: 4.031 kB / 327.7 MB, free: 4.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.949e-06/0.006294, allocations: 4.859 kB / 327.7 MB, free: 4.906 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006294, allocations: 0 / 327.7 MB, free: 4.906 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001225/0.006417, allocations: 19.94 kB / 327.7 MB, free: 4.887 MB / 298.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.00028/0.006697, allocations: 128.6 kB / 327.8 MB, free: 4.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001022/0.006799, allocations: 123.6 kB / 327.9 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.006801, allocations: 64 / 327.9 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.732e-05/0.006898, allocations: 93.91 kB / 328 MB, free: 4.508 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.056e-05/0.006949, allocations: 7.875 kB / 328 MB, free: 4.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001631/0.007112, allocations: 113.3 kB / 328.1 MB, free: 4.355 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.023e-05/0.007142, allocations: 59.3 kB / 328.2 MB, free: 4.277 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.543e-06/0.007149, allocations: 4 kB / 328.2 MB, free: 4.273 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.007184, allocations: 51.38 kB / 328.3 MB, free: 4.223 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.007185, allocations: 0 / 328.3 MB, free: 4.223 MB / 298.7 MB Notification: Performance of Templates: time 0.002331/0.009516, allocations: 0.746 MB / 329 MB, free: 3.48 MB / 298.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.034037624951452]