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.001331/0.001331, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.0009466/0.0009466, allocations: 165 kB / 24.91 MB, free: 9.195 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.9063/0.9063, allocations: 177 MB / 205.2 MB, free: 5.469 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.2738/0.2738, allocations: 34.87 MB / 296.6 MB, free: 0.5273 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.613e-06/1.613e-06, allocations: 0 / 325.9 MB, free: 7.211 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.421e-05/3.583e-05, allocations: 3.562 kB / 325.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001339/0.001375, allocations: 0.4962 MB / 326.4 MB, free: 6.711 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.00328, allocations: 1.634 MB / 328 MB, free: 5.059 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.556e-05/0.003306, allocations: 0 / 328 MB, free: 5.059 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.003321, allocations: 0 / 328 MB, free: 5.059 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.685e-06/0.003329, allocations: 4 kB / 328 MB, free: 5.055 MB / 298.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.0007248/0.004054, allocations: 175.1 kB / 328.2 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.7e-05/0.004101, allocations: 0 / 328.2 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.004139, allocations: 0.625 kB / 328.2 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.073e-05/0.004169, allocations: 4 kB / 328.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.985e-05/0.004199, allocations: 3.984 kB / 328.2 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.208e-06/0.004208, allocations: 0 / 328.2 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003382/0.004547, allocations: 119.8 kB / 328.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.187e-06/0.004556, allocations: 0 / 328.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.585e-05/0.004572, allocations: 8 kB / 328.3 MB, free: 4.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.004679, allocations: 43.89 kB / 328.4 MB, free: 4.707 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.004682, allocations: 0 / 328.4 MB, free: 4.707 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.004682, allocations: 0 / 328.4 MB, free: 4.707 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.004687, allocations: 0 / 328.4 MB, free: 4.707 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.000236/0.004923, allocations: 254.3 kB / 328.6 MB, free: 4.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.004959, allocations: 12.03 kB / 328.6 MB, free: 4.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.39e-05/0.004982, allocations: 0.9375 kB / 328.6 MB, free: 4.418 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.106e-05/0.005043, allocations: 101.8 kB / 328.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.005054, allocations: 384 / 328.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.746e-06/0.005063, allocations: 8.312 kB / 328.7 MB, free: 4.285 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.407e-05/0.005127, allocations: 55.97 kB / 328.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.949e-06/0.005132, allocations: 192 / 328.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.00514, allocations: 4.375 kB / 328.8 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.005147, allocations: 7.922 kB / 328.8 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.51e-05/0.005162, allocations: 25.7 kB / 328.8 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.351e-05/0.005225, allocations: 60.98 kB / 328.9 MB, free: 4.102 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.51e-05/0.00527, allocations: 40.28 kB / 328.9 MB, free: 4.047 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.919e-05/0.005289, allocations: 42.59 kB / 329 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-06/0.005292, allocations: 0 / 329 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.005324, allocations: 56.27 kB / 329 MB, free: 3.926 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.653e-06/0.005325, allocations: 7.984 kB / 329 MB, free: 3.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001243/0.00545, allocations: 118.8 kB / 329.2 MB, free: 3.777 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.005489, allocations: 77.11 kB / 329.2 MB, free: 3.684 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.044e-05/0.005529, allocations: 93.86 kB / 329.3 MB, free: 3.582 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.005539, allocations: 25.7 kB / 329.3 MB, free: 3.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.467e-05/0.005563, allocations: 84.14 kB / 329.4 MB, free: 3.465 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.005583, allocations: 1.375 kB / 329.4 MB, free: 3.465 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.005608, allocations: 17.69 kB / 329.4 MB, free: 3.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.087e-05/0.005699, allocations: 318.8 kB / 329.8 MB, free: 3.121 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.029e-05/0.005719, allocations: 29.77 kB / 329.8 MB, free: 3.086 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.758e-05/0.005737, allocations: 29.7 kB / 329.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.801e-05/0.005785, allocations: 60.27 kB / 329.9 MB, free: 2.977 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.005787, allocations: 0 / 329.9 MB, free: 2.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.249e-05/0.005849, allocations: 89.09 kB / 330 MB, free: 2.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.00588, allocations: 33.7 kB / 330 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.005886, allocations: 0 / 330 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.005899, allocations: 0 / 330 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.308e-06/0.005904, allocations: 0 / 330 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/0.005907, allocations: 0 / 330 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.005921, allocations: 8.094 kB / 330 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.005929, allocations: 7.875 kB / 330 MB, free: 2.816 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.265e-05/0.005991, allocations: 135.5 kB / 330.1 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.743e-06/0.005998, allocations: 4 kB / 330.1 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.316e-06/0.006006, allocations: 3 kB / 330.1 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.006009, allocations: 0 / 330.1 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.00601, allocations: 0 / 330.1 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.006014, allocations: 0 / 330.1 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.54e-05/0.006079, allocations: 66.59 kB / 330.2 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.00608, allocations: 0 / 330.2 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.00608, allocations: 4 kB / 330.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.12e-07/0.006081, allocations: 0 / 330.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.006087, allocations: 7.938 kB / 330.2 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.006089, allocations: 3.984 kB / 330.2 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.00609, allocations: 4 kB / 330.2 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.212e-05/0.006162, allocations: 108.5 kB / 330.3 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-06/0.006167, allocations: 4.328 kB / 330.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.006178, allocations: 0 / 330.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.47e-06/0.006184, allocations: 7.938 kB / 330.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-06/0.006193, allocations: 0 / 330.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-06/0.006195, allocations: 32 / 330.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.186e-06/0.006203, allocations: 12.86 kB / 330.4 MB, free: 2.398 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006203, allocations: 0 / 330.4 MB, free: 2.398 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001234/0.006326, allocations: 19.94 kB / 330.4 MB, free: 2.379 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.0002675/0.006594, allocations: 128.1 kB / 330.5 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.207e-05/0.006686, allocations: 115.7 kB / 330.6 MB, free: 2.121 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.00669, allocations: 4 kB / 330.6 MB, free: 2.117 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.662e-05/0.006717, allocations: 90.03 kB / 330.7 MB, free: 2.008 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.783e-05/0.006765, allocations: 11.88 kB / 330.7 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001563/0.006921, allocations: 108.9 kB / 330.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.83e-05/0.006949, allocations: 55.3 kB / 330.9 MB, free: 1.781 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.302e-06/0.006955, allocations: 0 / 330.9 MB, free: 1.781 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.832e-05/0.006994, allocations: 55.38 kB / 330.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.006995, allocations: 0 / 330.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of Templates: time 0.002653/0.009648, allocations: 0.7513 MB / 331.7 MB, free: 0.9844 MB / 298.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: 2.735309425741434]