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.001044/0.001044, allocations: 77.05 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001604/0.002648, allocations: 453.9 kB / 10.45 MB, free: 244 kB / 10.45 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.000924/0.000924, allocations: 161.1 kB / 11.35 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009756/0.0019, allocations: 475.6 kB / 11.82 MB, free: 2.344 MB / 13.93 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.015/1.015, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1015/1.116, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.2669/0.2669, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02819/0.2951, allocations: 13.11 MB / 291.5 MB, free: 7.328 MB / 282.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.613e-06/1.613e-06, allocations: 0 / 292.8 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.482e-05/2.643e-05, allocations: 5.141 kB / 292.8 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001771/0.001798, allocations: 0.5558 MB / 293.4 MB, free: 5.672 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.003914, allocations: 1.646 MB / 295 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.687e-05/0.00393, allocations: 0 / 295 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.318e-06/0.003935, allocations: 0 / 295 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.253e-06/0.003936, allocations: 0 / 295 MB, free: 4.008 MB / 282.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.0006269/0.004563, allocations: 155.1 kB / 295.2 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.537e-05/0.004628, allocations: 0.5 kB / 295.2 MB, free: 3.855 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.763e-05/0.004666, allocations: 8 kB / 295.2 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.723e-05/0.004703, allocations: 0 / 295.2 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.734e-05/0.00474, allocations: 3.938 kB / 295.2 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.00475, allocations: 0 / 295.2 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004073/0.005158, allocations: 123.8 kB / 295.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.412e-05/0.005172, allocations: 4 kB / 295.3 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.439e-05/0.005186, allocations: 4 kB / 295.3 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.005308, allocations: 35.91 kB / 295.3 MB, free: 3.68 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.326e-05/0.005321, allocations: 0 / 295.3 MB, free: 3.68 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.005323, allocations: 4 kB / 295.3 MB, free: 3.676 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.005332, allocations: 0 / 295.3 MB, free: 3.676 MB / 282.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.0002709/0.005603, allocations: 266.3 kB / 295.6 MB, free: 3.387 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.005639, allocations: 12.03 kB / 295.6 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.414e-05/0.005673, allocations: 0.9375 kB / 295.6 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.612e-05/0.005739, allocations: 101.8 kB / 295.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.005749, allocations: 4.312 kB / 295.7 MB, free: 3.246 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.005759, allocations: 4.375 kB / 295.7 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.872e-05/0.005838, allocations: 55.95 kB / 295.8 MB, free: 3.176 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.005847, allocations: 4.188 kB / 295.8 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.005854, allocations: 8.359 kB / 295.8 MB, free: 3.164 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.005861, allocations: 3.938 kB / 295.8 MB, free: 3.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.767e-05/0.005878, allocations: 25.7 kB / 295.8 MB, free: 3.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.786e-05/0.005956, allocations: 57.05 kB / 295.9 MB, free: 3.059 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.684e-05/0.006003, allocations: 52.25 kB / 295.9 MB, free: 2.992 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.083e-05/0.006024, allocations: 34.55 kB / 296 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-06/0.006028, allocations: 0 / 296 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.006066, allocations: 60.33 kB / 296 MB, free: 2.875 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.006067, allocations: 0 / 296 MB, free: 2.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001322/0.006199, allocations: 106.8 kB / 296.1 MB, free: 2.746 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.006277, allocations: 166.3 kB / 296.3 MB, free: 2.547 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.081e-05/0.006318, allocations: 89.86 kB / 296.4 MB, free: 2.449 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.00633, allocations: 25.7 kB / 296.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.604e-05/0.006356, allocations: 80.14 kB / 296.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.006379, allocations: 3.984 kB / 296.5 MB, free: 2.332 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.006414, allocations: 21.66 kB / 296.5 MB, free: 2.305 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.954e-05/0.006514, allocations: 314.8 kB / 296.8 MB, free: 1.988 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.651e-05/0.00654, allocations: 29.7 kB / 296.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.724e-05/0.006558, allocations: 29.69 kB / 296.9 MB, free: 1.918 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.911e-05/0.006607, allocations: 60.33 kB / 296.9 MB, free: 1.844 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.006609, allocations: 4 kB / 296.9 MB, free: 1.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.746e-05/0.006686, allocations: 85.11 kB / 297 MB, free: 1.738 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.006729, allocations: 33.69 kB / 297.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.006734, allocations: 0 / 297.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.006747, allocations: 3.938 kB / 297.1 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-06/0.006749, allocations: 0 / 297.1 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.006756, allocations: 3.938 kB / 297.1 MB, free: 1.691 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.168e-05/0.006778, allocations: 4.688 kB / 297.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.006788, allocations: 3.938 kB / 297.1 MB, free: 1.684 MB / 282.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.966e-05/0.006868, allocations: 135.6 kB / 297.2 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.006876, allocations: 4 kB / 297.2 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.138e-05/0.006887, allocations: 3 kB / 297.2 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.006893, allocations: 7.984 kB / 297.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.006895, allocations: 0 / 297.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.006898, allocations: 0 / 297.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.087e-05/0.006959, allocations: 65.84 kB / 297.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.00696, allocations: 0 / 297.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.006961, allocations: 0 / 297.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.853e-06/0.006968, allocations: 4 kB / 297.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.006969, allocations: 0 / 297.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-06/0.006974, allocations: 8 kB / 297.3 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.006975, allocations: 0 / 297.3 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.006977, allocations: 0 / 297.3 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.157e-05/0.007068, allocations: 116.4 kB / 297.4 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.007082, allocations: 4 kB / 297.4 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-06/0.007092, allocations: 0 / 297.4 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.09e-05/0.007103, allocations: 3.984 kB / 297.4 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.007106, allocations: 0 / 297.4 MB, free: 1.277 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.018e-05/0.007116, allocations: 8.859 kB / 297.4 MB, free: 1.266 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007116, allocations: 0 / 297.4 MB, free: 1.266 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001954/0.007312, allocations: 19.97 kB / 297.4 MB, free: 1.246 MB / 282.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.0003445/0.007656, allocations: 146.5 kB / 297.6 MB, free: 1.113 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001055/0.007762, allocations: 123.6 kB / 297.7 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.007766, allocations: 0 / 297.7 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.8e-05/0.007804, allocations: 85.97 kB / 297.8 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.954e-05/0.007863, allocations: 7.938 kB / 297.8 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001704/0.008034, allocations: 128.5 kB / 297.9 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.527e-05/0.008069, allocations: 51.36 kB / 298 MB, free: 0.625 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.052e-06/0.008075, allocations: 0 / 298 MB, free: 0.625 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.008121, allocations: 55.36 kB / 298 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.008121, allocations: 0 / 298 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of Templates: time 0.00286/0.01098, allocations: 0.8021 MB / 298.8 MB, free: 15.77 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7015392081812024]