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.001134/0.001134, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001595/0.001595, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.9754/0.9754, allocations: 177 MB / 204.8 MB, free: 5.598 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.2864/0.2864, allocations: 34.87 MB / 296.3 MB, free: 0.543 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.894e-06/1.894e-06, allocations: 0 / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.231e-05/3.421e-05, allocations: 3.156 kB / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001653/0.001687, allocations: 0.5033 MB / 379.2 MB, free: 1.617 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.003999, allocations: 1.637 MB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.602e-05/0.004025, allocations: 0 / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.157e-05/0.004047, allocations: 0 / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.224e-06/0.004054, allocations: 0 / 380.9 MB, free: 15.96 MB / 362.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.0007158/0.00477, allocations: 163.1 kB / 381 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.98e-05/0.00483, allocations: 8 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.598e-05/0.004876, allocations: 0 / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.989e-05/0.004906, allocations: 3.938 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.018e-05/0.004936, allocations: 3.984 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.004948, allocations: 4 kB / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004105/0.005359, allocations: 115.8 kB / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.139e-05/0.00537, allocations: 3.984 kB / 381.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.065e-05/0.005391, allocations: 4 kB / 381.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.005533, allocations: 43.89 kB / 381.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.005536, allocations: 0 / 381.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.005537, allocations: 0 / 381.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.005542, allocations: 4 kB / 381.2 MB, free: 15.61 MB / 362.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.0003433/0.005885, allocations: 370 kB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.005934, allocations: 8.031 kB / 381.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.212e-05/0.005977, allocations: 8.922 kB / 381.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.151e-05/0.006058, allocations: 112.6 kB / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.006071, allocations: 384 / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.006086, allocations: 8.359 kB / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.006198, allocations: 55.97 kB / 381.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.006209, allocations: 192 / 381.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.006223, allocations: 384 / 381.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.006235, allocations: 3.938 kB / 381.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.481e-05/0.006259, allocations: 33.64 kB / 381.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.006373, allocations: 112.6 kB / 381.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.472e-05/0.006428, allocations: 60.73 kB / 382 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.621e-05/0.006454, allocations: 37.39 kB / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-06/0.006459, allocations: 0 / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.006504, allocations: 67.16 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.006505, allocations: 0 / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001963/0.006701, allocations: 114.8 kB / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.006756, allocations: 85.05 kB / 382.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.212e-05/0.006808, allocations: 142.2 kB / 382.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.006819, allocations: 25.7 kB / 382.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.633e-05/0.006855, allocations: 130.8 kB / 382.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.006875, allocations: 4.344 kB / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.006907, allocations: 15.38 kB / 382.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.007055, allocations: 496.1 kB / 383.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.244e-05/0.007077, allocations: 33.83 kB / 383.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.721e-05/0.007094, allocations: 25.7 kB / 383.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.334e-05/0.007148, allocations: 67.09 kB / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.00715, allocations: 0 / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.809e-05/0.007238, allocations: 93.05 kB / 383.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.007273, allocations: 29.7 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.00728, allocations: 4 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.007298, allocations: 0 / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.625e-06/0.007306, allocations: 3.938 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.007313, allocations: 4.031 kB / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.664e-05/0.007329, allocations: 4 kB / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.007335, allocations: 0 / 383.3 MB, free: 13.2 MB / 362.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 9.54e-05/0.007431, allocations: 186.3 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.00744, allocations: 3.984 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.501e-05/0.007455, allocations: 3 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.007458, allocations: 4 kB / 383.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.007463, allocations: 0 / 383.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.007467, allocations: 3.938 kB / 383.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.567e-05/0.007532, allocations: 104.6 kB / 383.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.007534, allocations: 0 / 383.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.007534, allocations: 4 kB / 383.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.007538, allocations: 7.938 kB / 383.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.007544, allocations: 0 / 383.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.007545, allocations: 0 / 383.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.007547, allocations: 0 / 383.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000128/0.007675, allocations: 135.7 kB / 383.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-06/0.00768, allocations: 0 / 383.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.007699, allocations: 7.984 kB / 383.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.016e-05/0.007709, allocations: 0 / 383.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.419e-05/0.007724, allocations: 0 / 383.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.007727, allocations: 8.031 kB / 383.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.931e-05/0.007766, allocations: 127.1 kB / 383.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007766, allocations: 0 / 383.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002299/0.007996, allocations: 15.94 kB / 383.9 MB, free: 12.52 MB / 362.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.0003376/0.008334, allocations: 152.5 kB / 384.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.008458, allocations: 118.5 kB / 384.2 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.00846, allocations: 64 / 384.2 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.756e-05/0.008497, allocations: 92.8 kB / 384.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001403/0.008638, allocations: 4 kB / 384.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002132/0.008851, allocations: 117.6 kB / 384.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.037e-05/0.008891, allocations: 55.34 kB / 384.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.682e-06/0.008898, allocations: 0 / 384.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.008913, allocations: 8.5 kB / 384.5 MB, free: 11.87 MB / 362.7 MB Notification: Performance of SimCode: time 7.81e-07/0.008914, allocations: 0 / 384.5 MB, free: 11.87 MB / 362.7 MB Notification: Performance of Templates: time 0.002728/0.01164, allocations: 0.6819 MB / 385.2 MB, free: 11.19 MB / 362.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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] 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","",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.2132855197414756]