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.001068/0.001068, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001158/0.001158, allocations: 171.8 kB / 24.82 MB, free: 9.254 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 1.01/1.01, allocations: 177 MB / 205.1 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.3192/0.3192, allocations: 34.87 MB / 296.6 MB, free: 0.4961 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.984e-06/1.984e-06, allocations: 0 / 379.2 MB, free: 1.844 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/2.016e-05, allocations: 7.297 kB / 379.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001472/0.001492, allocations: 0.5054 MB / 379.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.003695, allocations: 1.63 MB / 381.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.945e-05/0.003724, allocations: 0 / 381.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.207e-05/0.003746, allocations: 4 kB / 381.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.003752, allocations: 0 / 381.3 MB, free: 15.68 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.0006906/0.004443, allocations: 159.1 kB / 381.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.109e-05/0.004494, allocations: 4 kB / 381.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.429e-05/0.004528, allocations: 0 / 381.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.267e-05/0.004561, allocations: 7.938 kB / 381.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.036e-05/0.004591, allocations: 3.984 kB / 381.5 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.004601, allocations: 0 / 381.5 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003917/0.004993, allocations: 123.9 kB / 381.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-06/0.005002, allocations: 0 / 381.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.306e-05/0.005015, allocations: 0 / 381.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.00513, allocations: 47.83 kB / 381.7 MB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.005133, allocations: 0 / 381.7 MB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.005133, allocations: 0 / 381.7 MB, free: 15.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.005137, allocations: 4 kB / 381.7 MB, free: 15.33 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.0002728/0.005409, allocations: 374 kB / 382.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.005452, allocations: 8.031 kB / 382.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.00548, allocations: 4.922 kB / 382.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.486e-05/0.005545, allocations: 108.6 kB / 382.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.005556, allocations: 384 / 382.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-06/0.005562, allocations: 384 / 382.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.832e-05/0.00564, allocations: 67.83 kB / 382.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.005648, allocations: 192 / 382.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-06/0.005653, allocations: 384 / 382.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.00566, allocations: 3.938 kB / 382.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.733e-05/0.005677, allocations: 29.7 kB / 382.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.107e-05/0.005768, allocations: 101.2 kB / 382.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.45e-05/0.005813, allocations: 52.8 kB / 382.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.098e-05/0.005834, allocations: 37.39 kB / 382.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.877e-06/0.005838, allocations: 0 / 382.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.00588, allocations: 67.09 kB / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.005881, allocations: 0 / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001528/0.006034, allocations: 114.8 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.006071, allocations: 81.11 kB / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.329e-05/0.006125, allocations: 150.4 kB / 382.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.267e-06/0.006134, allocations: 25.7 kB / 382.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.444e-05/0.006168, allocations: 126.9 kB / 383 MB, free: 13.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.397e-05/0.006182, allocations: 352 / 383 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.00621, allocations: 19.38 kB / 383 MB, free: 13.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.006342, allocations: 0.4883 MB / 383.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.766e-05/0.00636, allocations: 29.7 kB / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.543e-05/0.006375, allocations: 25.7 kB / 383.6 MB, free: 13.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.455e-05/0.00642, allocations: 67.03 kB / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.006421, allocations: 0 / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0003371/0.006758, allocations: 97.11 kB / 383.7 MB, free: 13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.006786, allocations: 33.7 kB / 383.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.006791, allocations: 0 / 383.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.006804, allocations: 0 / 383.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.006805, allocations: 0 / 383.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.776e-06/0.006808, allocations: 4 kB / 383.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.348e-05/0.006821, allocations: 3.938 kB / 383.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.006826, allocations: 0 / 383.8 MB, free: 12.95 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 7.841e-05/0.006904, allocations: 182.3 kB / 384 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.004e-06/0.006911, allocations: 4.031 kB / 384 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.513e-05/0.006926, allocations: 10.98 kB / 384 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.006928, allocations: 0 / 384 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.00693, allocations: 0 / 384 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.006932, allocations: 7.875 kB / 384 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.122e-05/0.006993, allocations: 97.2 kB / 384.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.006994, allocations: 0 / 384.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.006995, allocations: 0 / 384.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.006996, allocations: 0 / 384.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-06/0.007, allocations: 0 / 384.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.007001, allocations: 4 kB / 384.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.007002, allocations: 0 / 384.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.245e-05/0.007094, allocations: 139.8 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-06/0.007098, allocations: 0 / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.007108, allocations: 0 / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-06/0.007117, allocations: 4 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-06/0.007125, allocations: 3.984 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.007128, allocations: 0 / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.54e-05/0.007163, allocations: 119.2 kB / 384.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007163, allocations: 0 / 384.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002195/0.007383, allocations: 19.94 kB / 384.4 MB, free: 12.29 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.0002551/0.007638, allocations: 149.7 kB / 384.5 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.673e-05/0.007735, allocations: 118.5 kB / 384.6 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.007736, allocations: 0 / 384.6 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/0.007773, allocations: 92.78 kB / 384.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.0079, allocations: 3.938 kB / 384.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001521/0.008052, allocations: 109.7 kB / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.77e-05/0.00808, allocations: 55.48 kB / 384.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.712e-06/0.008087, allocations: 3.984 kB / 384.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.00813, allocations: 82.19 kB / 385 MB, free: 11.58 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.008131, allocations: 0 / 385 MB, free: 11.58 MB / 362.7 MB Notification: Performance of Templates: time 0.002837/0.01097, allocations: 0.7467 MB / 385.7 MB, free: 10.83 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: 2.9109504702501]