Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0016/0.0016, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.00127/0.00127, allocations: 169.5 kB / 24.82 MB, free: 9.273 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.06/1.06, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2829/0.2829, allocations: 34.26 MB / 296.1 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 378.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/2.058e-05, allocations: 2.312 kB / 378.5 MB, free: 2.418 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001296/0.001317, allocations: 0.5152 MB / 379 MB, free: 1.902 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005957/0.007274, allocations: 1.622 MB / 380.6 MB, free: 268 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.688e-05/0.007301, allocations: 4 kB / 380.6 MB, free: 264 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.644e-05/0.007317, allocations: 0 / 380.6 MB, free: 264 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.612e-06/0.007324, allocations: 3.938 kB / 380.6 MB, free: 260 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0005462/0.00787, allocations: 167.1 kB / 380.8 MB, free: 92 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.607e-05/0.007916, allocations: 0 / 380.8 MB, free: 92 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.512e-05/0.007951, allocations: 7.938 kB / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.905e-05/0.00798, allocations: 0 / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.632e-05/0.008007, allocations: 0 / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.187e-06/0.008016, allocations: 0 / 380.8 MB, free: 84 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003482/0.008364, allocations: 123.9 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.008373, allocations: 4 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.206e-05/0.008385, allocations: 0 / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.008495, allocations: 47.83 kB / 381 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.008498, allocations: 0 / 381 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.008499, allocations: 0 / 381 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.008503, allocations: 0 / 381 MB, free: 15.91 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.0002776/0.00878, allocations: 370 kB / 381.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.008822, allocations: 16.02 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.524e-05/0.008847, allocations: 0.9375 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003081/0.01193, allocations: 112.6 kB / 381.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.01194, allocations: 4.312 kB / 381.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-06/0.01195, allocations: 4.375 kB / 381.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.892e-05/0.01202, allocations: 51.97 kB / 381.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.01203, allocations: 192 / 381.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.01204, allocations: 4.375 kB / 381.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.01205, allocations: 3.938 kB / 381.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.162e-05/0.01207, allocations: 33.64 kB / 381.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.716e-05/0.01217, allocations: 97.25 kB / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.702e-05/0.01221, allocations: 52.77 kB / 381.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.261e-05/0.01224, allocations: 41.48 kB / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.788e-06/0.01224, allocations: 0 / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.01228, allocations: 59.09 kB / 381.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.01228, allocations: 0 / 381.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001689/0.01245, allocations: 122.7 kB / 381.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.0125, allocations: 81.11 kB / 382 MB, free: 14.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.497e-05/0.01255, allocations: 142.2 kB / 382.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.01256, allocations: 25.7 kB / 382.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.0126, allocations: 126.9 kB / 382.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.01261, allocations: 4.469 kB / 382.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.908e-05/0.01264, allocations: 19.38 kB / 382.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.01277, allocations: 0.4883 MB / 382.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.353e-05/0.0128, allocations: 25.7 kB / 382.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.475e-05/0.01281, allocations: 29.7 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.565e-05/0.01286, allocations: 63.09 kB / 382.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.01286, allocations: 0 / 382.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.176e-05/0.01293, allocations: 101 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.01296, allocations: 33.7 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.01296, allocations: 96 / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.01298, allocations: 4 kB / 383 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-06/0.01298, allocations: 3.984 kB / 383 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-06/0.01298, allocations: 0 / 383 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.307e-05/0.01299, allocations: 3.938 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.013, allocations: 4 kB / 383 MB, free: 13.52 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.221e-05/0.01307, allocations: 182.3 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.873e-06/0.01308, allocations: 4 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.231e-05/0.01309, allocations: 6.984 kB / 383.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.01309, allocations: 3.938 kB / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.01309, allocations: 0 / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.0131, allocations: 4 kB / 383.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.368e-05/0.01316, allocations: 97.2 kB / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.01316, allocations: 0 / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.01316, allocations: 0 / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.41e-07/0.01316, allocations: 0 / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-06/0.01317, allocations: 0 / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.01317, allocations: 0 / 383.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.01317, allocations: 3.938 kB / 383.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.906e-05/0.01326, allocations: 135.8 kB / 383.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-06/0.01326, allocations: 0 / 383.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-06/0.01327, allocations: 4.031 kB / 383.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.352e-06/0.01328, allocations: 0 / 383.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.04e-05/0.01329, allocations: 7.984 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.01329, allocations: 0 / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.19e-05/0.01332, allocations: 119.2 kB / 383.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01332, allocations: 0 / 383.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001856/0.01351, allocations: 15.94 kB / 383.6 MB, free: 12.87 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.0005287/0.01403, allocations: 156 kB / 383.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.496e-05/0.01413, allocations: 122.4 kB / 383.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01413, allocations: 0 / 383.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.344e-05/0.01416, allocations: 92.78 kB / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001129/0.01428, allocations: 3.938 kB / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001506/0.01443, allocations: 113.7 kB / 384.1 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.065e-05/0.01446, allocations: 55.34 kB / 384.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.741e-06/0.01446, allocations: 0 / 384.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.349e-05/0.01451, allocations: 74.2 kB / 384.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.01451, allocations: 4.125 kB / 384.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of Templates: time 0.005631/0.02014, allocations: 0.7457 MB / 385 MB, free: 11.41 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.101214943919331]