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: 79.69 kB / 21.7 MB, free: 2.852 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.001293/0.001293, allocations: 165 kB / 24.99 MB, free: 8.801 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.081/1.081, allocations: 177 MB / 205.2 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.2757/0.2757, allocations: 34.86 MB / 296.6 MB, free: 0.5859 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.382e-06/1.382e-06, allocations: 0 / 378.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/1.995e-05, allocations: 8.5 kB / 378.7 MB, free: 2.457 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001021/0.001041, allocations: 0.5162 MB / 379.2 MB, free: 1.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.002728, allocations: 1.618 MB / 380.9 MB, free: 308 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.496e-05/0.002753, allocations: 0 / 380.9 MB, free: 308 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.002768, allocations: 7.938 kB / 380.9 MB, free: 300 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.703e-06/0.002775, allocations: 4 kB / 380.9 MB, free: 296 kB / 346.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.0005288/0.003304, allocations: 159.1 kB / 381 MB, free: 136 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.705e-05/0.003361, allocations: 7.984 kB / 381 MB, free: 128 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.717e-05/0.003398, allocations: 3.984 kB / 381 MB, free: 124 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.554e-05/0.003424, allocations: 7.938 kB / 381 MB, free: 116 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.834e-05/0.003452, allocations: 0 / 381 MB, free: 116 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.709e-06/0.003462, allocations: 4 kB / 381 MB, free: 112 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003126/0.003774, allocations: 111.9 kB / 381.2 MB, free: 0 / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-06/0.003781, allocations: 0 / 381.2 MB, free: 0 / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.676e-05/0.003798, allocations: 0 / 381.2 MB, free: 0 / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.003924, allocations: 43.89 kB / 381.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.003927, allocations: 4 kB / 381.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.003928, allocations: 0 / 381.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.003931, allocations: 4 kB / 381.2 MB, free: 15.95 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.0002734/0.004205, allocations: 378 kB / 381.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.004245, allocations: 8.031 kB / 381.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.004291, allocations: 8.875 kB / 381.6 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.261e-05/0.004364, allocations: 104.6 kB / 381.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.004376, allocations: 384 / 381.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.004386, allocations: 4.312 kB / 381.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.663e-05/0.004482, allocations: 55.97 kB / 381.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.00449, allocations: 192 / 381.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.004498, allocations: 384 / 381.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.004509, allocations: 3.938 kB / 381.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.366e-05/0.004533, allocations: 41.69 kB / 381.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.778e-05/0.00463, allocations: 104.6 kB / 381.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.797e-05/0.004678, allocations: 56.73 kB / 382 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.2e-05/0.0047, allocations: 37.39 kB / 382 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-06/0.004705, allocations: 0 / 382 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.00474, allocations: 63.16 kB / 382.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.004742, allocations: 0 / 382.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001774/0.004919, allocations: 118.8 kB / 382.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.004963, allocations: 84.98 kB / 382.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.482e-05/0.005008, allocations: 146.4 kB / 382.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.005018, allocations: 25.7 kB / 382.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.224e-05/0.00505, allocations: 130.9 kB / 382.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.005065, allocations: 352 / 382.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.00509, allocations: 23.36 kB / 382.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.005207, allocations: 496.1 kB / 383.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2e-05/0.005227, allocations: 25.7 kB / 383.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.251e-05/0.005239, allocations: 25.7 kB / 383.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.101e-05/0.00529, allocations: 63.09 kB / 383.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.005293, allocations: 0 / 383.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.301e-05/0.005356, allocations: 105 kB / 383.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.005384, allocations: 33.7 kB / 383.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.005389, allocations: 0 / 383.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.005402, allocations: 0 / 383.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-06/0.005403, allocations: 0 / 383.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.005408, allocations: 3.938 kB / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.537e-06/0.005418, allocations: 0 / 383.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.005423, allocations: 0 / 383.3 MB, free: 13.54 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.324e-05/0.005497, allocations: 190.2 kB / 383.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.769e-06/0.005501, allocations: 0 / 383.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.038e-05/0.005512, allocations: 11.03 kB / 383.5 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.005513, allocations: 0 / 383.5 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.005517, allocations: 3.938 kB / 383.5 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.005521, allocations: 3.938 kB / 383.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.571e-05/0.005576, allocations: 104.6 kB / 383.6 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.005578, allocations: 4 kB / 383.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.683e-06/0.005579, allocations: 4 kB / 383.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.005581, allocations: 3.984 kB / 383.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.005587, allocations: 0 / 383.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.005588, allocations: 0 / 383.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.005588, allocations: 0 / 383.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.129e-05/0.00567, allocations: 139.7 kB / 383.8 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-06/0.005674, allocations: 4 kB / 383.8 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.00569, allocations: 0 / 383.8 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.029e-06/0.005695, allocations: 0 / 383.8 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.674e-05/0.005712, allocations: 7.984 kB / 383.8 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.005715, allocations: 4 kB / 383.8 MB, free: 12.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.216e-05/0.005747, allocations: 123.1 kB / 383.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005747, allocations: 0 / 383.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001488/0.005896, allocations: 15.94 kB / 383.9 MB, free: 12.85 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.0002473/0.006143, allocations: 142.5 kB / 384.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.006249, allocations: 122.5 kB / 384.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.006251, allocations: 0 / 384.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.578e-05/0.006287, allocations: 92.73 kB / 384.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.192e-05/0.006379, allocations: 4 kB / 384.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001708/0.00655, allocations: 117.6 kB / 384.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.894e-05/0.006579, allocations: 51.48 kB / 384.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.673e-06/0.006585, allocations: 4 kB / 384.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.006597, allocations: 8.5 kB / 384.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of SimCode: time 6.82e-07/0.006598, allocations: 0 / 384.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of Templates: time 0.002214/0.008812, allocations: 0.685 MB / 385.1 MB, free: 11.53 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.119467183947563]