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.001833/0.001833, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00252/0.00252, allocations: 210.5 kB / 23.73 MB, free: 4.387 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.556/1.556, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2397/0.2397, allocations: 46.96 MB / 360.9 MB, free: 4.027 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.00218/0.00218, allocations: 67.89 kB / 0.4966 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3384, allocations: 66.04 MB / 0.5611 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001565/0.3399, allocations: 497.1 kB / 0.5615 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.3422, allocations: 1.575 MB / 0.5631 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.827e-05/0.3423, allocations: 3.938 kB / 0.5631 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.4e-05/0.3423, allocations: 0 / 0.5631 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.3423, allocations: 0 / 0.5631 GB, free: 2.094 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.0006924/0.343, allocations: 158.9 kB / 0.5632 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.346e-05/0.343, allocations: 12 kB / 0.5632 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.752e-05/0.3431, allocations: 3.984 kB / 0.5633 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.547e-05/0.3431, allocations: 0 / 0.5633 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.548e-05/0.3431, allocations: 4 kB / 0.5633 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.064e-06/0.3431, allocations: 0 / 0.5633 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000378/0.3435, allocations: 119.8 kB / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.804e-06/0.3435, allocations: 0 / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.641e-05/0.3435, allocations: 0 / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.3436, allocations: 42.62 kB / 0.5634 GB, free: 1.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3436, allocations: 4 kB / 0.5634 GB, free: 1.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3436, allocations: 0 / 0.5634 GB, free: 1.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.3437, allocations: 0 / 0.5634 GB, free: 1.762 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.0003314/0.344, allocations: 271.8 kB / 0.5637 GB, free: 1.465 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.344, allocations: 12.03 kB / 0.5637 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.344, allocations: 0.9375 kB / 0.5637 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.285e-05/0.3441, allocations: 110.5 kB / 0.5638 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.3441, allocations: 384 / 0.5638 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.3442, allocations: 4.375 kB / 0.5638 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.45e-05/0.3442, allocations: 55.72 kB / 0.5638 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3443, allocations: 4 kB / 0.5639 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.655e-06/0.3443, allocations: 0 / 0.5639 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.3443, allocations: 7.984 kB / 0.5639 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.314e-05/0.3443, allocations: 29.69 kB / 0.5639 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.3444, allocations: 93.33 kB / 0.564 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.205e-05/0.3445, allocations: 56.19 kB / 0.564 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.833e-05/0.3445, allocations: 30.56 kB / 0.5641 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.3445, allocations: 4.062 kB / 0.5641 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.3446, allocations: 56.27 kB / 0.5641 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3446, allocations: 0 / 0.5641 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001915/0.3448, allocations: 126.7 kB / 0.5642 GB, free: 0.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.3448, allocations: 77.11 kB / 0.5643 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.262e-05/0.3449, allocations: 93.81 kB / 0.5644 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.3449, allocations: 29.7 kB / 0.5644 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.3449, allocations: 80.14 kB / 0.5645 GB, free: 448 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.3449, allocations: 0 / 0.5645 GB, free: 448 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.345, allocations: 17.64 kB / 0.5645 GB, free: 424 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3451, allocations: 318.8 kB / 0.5648 GB, free: 96 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.596e-05/0.3451, allocations: 29.7 kB / 0.5649 GB, free: 60 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.888e-05/0.3451, allocations: 29.7 kB / 0.5649 GB, free: 24 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.37e-05/0.3452, allocations: 64.45 kB / 0.5649 GB, free: 15.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3452, allocations: 0 / 0.5649 GB, free: 15.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.865e-05/0.3453, allocations: 89.09 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.449e-05/0.3453, allocations: 37.7 kB / 0.5651 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3453, allocations: 0 / 0.5651 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3454, allocations: 7.938 kB / 0.5651 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3454, allocations: 0 / 0.5651 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.3454, allocations: 0 / 0.5651 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.371e-05/0.3454, allocations: 3.938 kB / 0.5651 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.3454, allocations: 0 / 0.5651 GB, free: 15.79 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.1e-05/0.3455, allocations: 143.6 kB / 0.5652 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.3455, allocations: 0 / 0.5652 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.256e-05/0.3455, allocations: 6.938 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3455, allocations: 4 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3455, allocations: 0 / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3455, allocations: 0 / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.19e-05/0.3456, allocations: 93.33 kB / 0.5653 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3456, allocations: 0 / 0.5653 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3456, allocations: 0 / 0.5653 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.3456, allocations: 4 kB / 0.5653 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.3456, allocations: 7.984 kB / 0.5653 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3456, allocations: 7.875 kB / 0.5653 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3456, allocations: 0 / 0.5653 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001153/0.3457, allocations: 112.5 kB / 0.5654 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.676e-06/0.3457, allocations: 7.984 kB / 0.5654 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.3457, allocations: 4 kB / 0.5655 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.01e-05/0.3457, allocations: 3.938 kB / 0.5655 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.3457, allocations: 3.938 kB / 0.5655 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.3457, allocations: 3.984 kB / 0.5655 GB, free: 15.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.3458, allocations: 75.28 kB / 0.5655 GB, free: 15.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3458, allocations: 4.031 kB / 0.5655 GB, free: 15.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002084/0.346, allocations: 19.94 kB / 0.5656 GB, free: 15.21 MB / 414.1 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.0003066/0.3463, allocations: 139.2 kB / 0.5657 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.3464, allocations: 114.8 kB / 0.5658 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3464, allocations: 0 / 0.5658 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.089e-05/0.3465, allocations: 81.11 kB / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.3466, allocations: 8.125 kB / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001815/0.3468, allocations: 110.8 kB / 0.566 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.504e-05/0.3468, allocations: 59.34 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.649e-06/0.3468, allocations: 0 / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.188e-05/0.3469, allocations: 11.38 kB / 0.5661 GB, free: 14.61 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3469, allocations: 4 kB / 0.5661 GB, free: 14.6 MB / 414.1 MB Notification: Performance of Templates: time 0.003552/0.3504, allocations: 0.639 MB / 0.5667 GB, free: 13.96 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/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.294577455148101]