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.00161/0.00161, allocations: 110.8 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.00195/0.00195, allocations: 211.6 kB / 24.49 MB, free: 3.941 MB / 14.72 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.584/1.584, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.2375/0.2375, allocations: 46.96 MB / 361.6 MB, free: 4.023 MB / 286.1 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 0.002051/0.002051, allocations: 72.08 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3145, allocations: 66.04 MB / 0.5618 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001699/0.3162, allocations: 493.1 kB / 0.5623 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002343/0.3185, allocations: 1.575 MB / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.198e-05/0.3186, allocations: 3.938 kB / 0.5638 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.135e-05/0.3186, allocations: 0 / 0.5638 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.3186, allocations: 4 kB / 0.5638 GB, free: 2.047 MB / 398.1 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.0006433/0.3192, allocations: 163 kB / 0.564 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.863e-05/0.3193, allocations: 0 / 0.564 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.541e-05/0.3193, allocations: 4 kB / 0.564 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.086e-05/0.3193, allocations: 3.984 kB / 0.564 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.262e-05/0.3193, allocations: 0 / 0.564 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.232e-06/0.3193, allocations: 0 / 0.564 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003784/0.3197, allocations: 127.8 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.3197, allocations: 7.922 kB / 0.5641 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.592e-05/0.3197, allocations: 0 / 0.5641 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.3199, allocations: 35.61 kB / 0.5642 GB, free: 1.719 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3199, allocations: 0 / 0.5642 GB, free: 1.719 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3199, allocations: 0 / 0.5642 GB, free: 1.719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.3199, allocations: 4 kB / 0.5642 GB, free: 1.715 MB / 398.1 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.0003344/0.3202, allocations: 274.8 kB / 0.5644 GB, free: 1.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3203, allocations: 8.031 kB / 0.5644 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.3203, allocations: 4.938 kB / 0.5644 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.013e-05/0.3204, allocations: 102.5 kB / 0.5645 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.3204, allocations: 4.375 kB / 0.5645 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.993e-06/0.3204, allocations: 384 / 0.5645 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001057/0.3205, allocations: 71.62 kB / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.3205, allocations: 0 / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.3205, allocations: 0 / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3205, allocations: 0 / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.098e-05/0.3205, allocations: 25.7 kB / 0.5646 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001231/0.3207, allocations: 105.3 kB / 0.5647 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.751e-05/0.3207, allocations: 44.28 kB / 0.5648 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.214e-05/0.3208, allocations: 42.58 kB / 0.5648 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.3208, allocations: 0 / 0.5648 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.3208, allocations: 56.27 kB / 0.5649 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3208, allocations: 3.938 kB / 0.5649 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002144/0.321, allocations: 122.7 kB / 0.565 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.3211, allocations: 81.11 kB / 0.5651 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.836e-05/0.3211, allocations: 93.81 kB / 0.5652 GB, free: 0.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3212, allocations: 25.7 kB / 0.5652 GB, free: 480 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.3212, allocations: 80.14 kB / 0.5653 GB, free: 396 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.297e-05/0.3212, allocations: 4.125 kB / 0.5653 GB, free: 392 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.3212, allocations: 17.72 kB / 0.5653 GB, free: 368 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3214, allocations: 310.8 kB / 0.5656 GB, free: 48 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.303e-05/0.3214, allocations: 25.7 kB / 0.5656 GB, free: 16 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-05/0.3215, allocations: 33.7 kB / 0.5656 GB, free: 15.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.648e-05/0.3215, allocations: 68.19 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3215, allocations: 0 / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.543e-05/0.3216, allocations: 85.11 kB / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.3217, allocations: 33.7 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3217, allocations: 4.094 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3217, allocations: 3.938 kB / 0.5658 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.348e-06/0.3217, allocations: 7.984 kB / 0.5658 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3217, allocations: 0 / 0.5658 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.626e-05/0.3217, allocations: 4 kB / 0.5658 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.3217, allocations: 0 / 0.5658 GB, free: 15.73 MB / 414.1 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.614e-05/0.3218, allocations: 131.5 kB / 0.5659 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.01e-05/0.3218, allocations: 4 kB / 0.566 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.128e-05/0.3218, allocations: 3 kB / 0.566 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3218, allocations: 3.938 kB / 0.566 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3218, allocations: 4 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-06/0.3218, allocations: 0 / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.3219, allocations: 3.984 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-06/0.3219, allocations: 8 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.3219, allocations: 0 / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001463/0.322, allocations: 215.7 kB / 0.5662 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001783/0.3222, allocations: 270.2 kB / 0.5664 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.183e-05/0.3222, allocations: 33.69 kB / 0.5665 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.417e-05/0.3223, allocations: 83.16 kB / 0.5665 GB, free: 14.91 MB / 414.1 MB Notification: Performance of Backend: time 1.5e-07/0.3223, allocations: 4.062 kB / 0.5666 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005484/0.3228, allocations: 215.2 kB / 0.5668 GB, free: 14.68 MB / 414.1 MB Notification: Performance of SimCode: time 0.0004374/0.3233, allocations: 0.5755 MB / 0.5673 GB, free: 14.04 MB / 414.1 MB Notification: Performance of Templates: time 0.00331/0.3266, allocations: 0.6742 MB / 0.568 GB, free: 13.37 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0063104610017035]