Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001305/0.001305, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001135/0.00244, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007258/0.0007258, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009054/0.001631, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09952/1.115, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2747/0.2747, allocations: 32.81 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02483/0.2995, allocations: 12.53 MB / 289.3 MB, free: 8.672 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 7.875 kB / 290.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.46e-05/2.636e-05, allocations: 7.781 kB / 290.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001844/0.001871, allocations: 0.5515 MB / 291.1 MB, free: 7.234 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.004245, allocations: 1.645 MB / 292.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.734e-05/0.004262, allocations: 0 / 292.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.871e-06/0.004268, allocations: 0 / 292.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.683e-06/0.004269, allocations: 1.375 kB / 292.8 MB, free: 5.918 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0006115/0.004881, allocations: 150.5 kB / 292.9 MB, free: 5.812 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.047e-05/0.004971, allocations: 5.969 kB / 292.9 MB, free: 5.809 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.476e-05/0.005016, allocations: 7.938 kB / 293 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.76e-05/0.005054, allocations: 0 / 293 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.942e-05/0.005093, allocations: 3.938 kB / 293 MB, free: 5.801 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.074e-05/0.005104, allocations: 0 / 293 MB, free: 5.801 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004261/0.00553, allocations: 120.2 kB / 293.1 MB, free: 5.758 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-06/0.005538, allocations: 0 / 293.1 MB, free: 5.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.672e-05/0.005555, allocations: 0 / 293.1 MB, free: 5.758 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.00568, allocations: 43.12 kB / 293.1 MB, free: 5.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.011e-05/0.0057, allocations: 0 / 293.1 MB, free: 5.738 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.005702, allocations: 4 kB / 293.1 MB, free: 5.734 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.005718, allocations: 0 / 293.1 MB, free: 5.734 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.0003055/0.006024, allocations: 265.5 kB / 293.4 MB, free: 5.461 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.006061, allocations: 10.22 kB / 293.4 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.873e-05/0.00609, allocations: 0.9375 kB / 293.4 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.342e-05/0.006153, allocations: 105.5 kB / 293.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.006163, allocations: 384 / 293.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.312e-06/0.006169, allocations: 384 / 293.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.801e-05/0.006247, allocations: 62.77 kB / 293.6 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.006255, allocations: 192 / 293.6 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-06/0.00626, allocations: 1.281 kB / 293.6 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.006267, allocations: 7.938 kB / 293.6 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.078e-05/0.006288, allocations: 29.61 kB / 293.6 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.907e-05/0.006357, allocations: 54.52 kB / 293.6 MB, free: 5.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.758e-05/0.006404, allocations: 45.95 kB / 293.7 MB, free: 5.102 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.076e-05/0.006425, allocations: 33.28 kB / 293.7 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-06/0.006428, allocations: 0 / 293.7 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.006471, allocations: 66.03 kB / 293.8 MB, free: 4.984 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.006471, allocations: 3.938 kB / 293.8 MB, free: 4.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001184/0.00659, allocations: 110.4 kB / 293.9 MB, free: 4.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.006643, allocations: 82.42 kB / 294 MB, free: 4.758 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.938e-05/0.006682, allocations: 93.84 kB / 294.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.006693, allocations: 25.7 kB / 294.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.283e-05/0.006716, allocations: 84.3 kB / 294.2 MB, free: 4.539 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.006732, allocations: 0 / 294.2 MB, free: 4.539 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.006763, allocations: 9.719 kB / 294.2 MB, free: 4.523 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.006864, allocations: 322.8 kB / 294.5 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.71e-05/0.006881, allocations: 25.7 kB / 294.5 MB, free: 4.168 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.523e-05/0.006896, allocations: 29.7 kB / 294.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.179e-05/0.006948, allocations: 72.19 kB / 294.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.00695, allocations: 4.062 kB / 294.6 MB, free: 4.043 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.827e-05/0.007008, allocations: 81.11 kB / 294.7 MB, free: 3.945 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.007043, allocations: 29.7 kB / 294.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.007048, allocations: 4 kB / 294.7 MB, free: 3.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.007059, allocations: 3.984 kB / 294.7 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.09e-06/0.007064, allocations: 0 / 294.7 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-06/0.007066, allocations: 3.938 kB / 294.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.561e-05/0.007082, allocations: 0 / 294.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.007089, allocations: 3.938 kB / 294.8 MB, free: 3.895 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.851e-05/0.007167, allocations: 139.6 kB / 294.9 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.007174, allocations: 0 / 294.9 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.958e-06/0.007183, allocations: 7 kB / 294.9 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.007185, allocations: 0 / 294.9 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.007188, allocations: 4 kB / 294.9 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.007192, allocations: 0 / 294.9 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.956e-05/0.007252, allocations: 74.45 kB / 295 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.007253, allocations: 0 / 295 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-06/0.007256, allocations: 4 kB / 295 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-06/0.00726, allocations: 0 / 295 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.007261, allocations: 0 / 295 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-06/0.007265, allocations: 4 kB / 295 MB, free: 3.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.007266, allocations: 0 / 295 MB, free: 3.637 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.007267, allocations: 0 / 295 MB, free: 3.637 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.286e-05/0.00736, allocations: 120.5 kB / 295.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.007372, allocations: 0 / 295.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-06/0.00738, allocations: 0 / 295.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.007392, allocations: 0 / 295.1 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.007394, allocations: 4 kB / 295.1 MB, free: 3.484 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.885e-06/0.007402, allocations: 4.859 kB / 295.1 MB, free: 3.477 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.007402, allocations: 0 / 295.1 MB, free: 3.477 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002143/0.007616, allocations: 19.92 kB / 295.1 MB, free: 3.457 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.0004065/0.008022, allocations: 143.9 kB / 295.3 MB, free: 3.324 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.00814, allocations: 123.7 kB / 295.4 MB, free: 3.176 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.008144, allocations: 0 / 295.4 MB, free: 3.176 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.639e-05/0.008191, allocations: 89.95 kB / 295.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.943e-05/0.00825, allocations: 5.469 kB / 295.5 MB, free: 3.062 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001883/0.008439, allocations: 113.5 kB / 295.6 MB, free: 2.918 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.84e-05/0.008477, allocations: 59.28 kB / 295.7 MB, free: 2.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.394e-06/0.008484, allocations: 0 / 295.7 MB, free: 2.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.798e-05/0.008532, allocations: 51.38 kB / 295.7 MB, free: 2.789 MB / 282.7 MB Notification: Performance of SimCode: time 7.21e-07/0.008533, allocations: 0 / 295.7 MB, free: 2.789 MB / 282.7 MB Notification: Performance of Templates: time 0.003239/0.01177, allocations: 0.7693 MB / 296.5 MB, free: 2.027 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.7977247200906277]