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.0007984/0.0007984, allocations: 76.17 kB / 9.931 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00169/0.002488, allocations: 449.7 kB / 10.37 MB, free: 324 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.001111/0.001111, allocations: 169.1 kB / 11.26 MB, free: 2.906 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00104/0.002151, allocations: 455.6 kB / 11.71 MB, free: 2.457 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.009/1.009, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1019/1.11, allocations: 53.65 MB / 243.3 MB, free: 15.59 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.2549/0.2549, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02168/0.2766, allocations: 13.1 MB / 291.3 MB, free: 7.371 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.363e-06/1.363e-06, allocations: 0 / 292.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.289e-05, allocations: 3.188 kB / 292.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001745/0.001767, allocations: 0.5441 MB / 293.2 MB, free: 5.781 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.003704, allocations: 1.654 MB / 294.8 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.462e-05/0.003718, allocations: 0 / 294.8 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.338e-06/0.003723, allocations: 0 / 294.8 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.052e-06/0.003724, allocations: 0 / 294.8 MB, free: 4.109 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.000367/0.004091, allocations: 155.1 kB / 295 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.367e-05/0.004154, allocations: 4 kB / 295 MB, free: 3.953 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.004191, allocations: 0 / 295 MB, free: 3.953 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.185e-05/0.004233, allocations: 3.984 kB / 295 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.111e-05/0.004264, allocations: 0 / 295 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.004275, allocations: 7.938 kB / 295 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003448/0.00462, allocations: 115.9 kB / 295.1 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.657e-06/0.004628, allocations: 7.938 kB / 295.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.301e-05/0.004641, allocations: 4.5 kB / 295.1 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.004744, allocations: 35.91 kB / 295.1 MB, free: 3.781 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.46e-05/0.004759, allocations: 0 / 295.1 MB, free: 3.781 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.00476, allocations: 0 / 295.1 MB, free: 3.781 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.004773, allocations: 0 / 295.1 MB, free: 3.781 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.0002745/0.005047, allocations: 254.3 kB / 295.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.005078, allocations: 12.03 kB / 295.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.005108, allocations: 0.9375 kB / 295.4 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.042e-05/0.005158, allocations: 105.8 kB / 295.5 MB, free: 3.363 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.799e-06/0.005168, allocations: 4.312 kB / 295.5 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.722e-06/0.005175, allocations: 8.375 kB / 295.5 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.533e-05/0.00524, allocations: 55.97 kB / 295.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-06/0.005246, allocations: 4.188 kB / 295.6 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.481e-06/0.005251, allocations: 384 / 295.6 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.005256, allocations: 7.875 kB / 295.6 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.559e-05/0.005272, allocations: 25.7 kB / 295.6 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.708e-05/0.005339, allocations: 65.02 kB / 295.7 MB, free: 3.164 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.091e-05/0.00538, allocations: 48.25 kB / 295.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.494e-05/0.005395, allocations: 30.56 kB / 295.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-06/0.005398, allocations: 0 / 295.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.005439, allocations: 64.33 kB / 295.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.81e-07/0.00544, allocations: 0 / 295.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001038/0.005543, allocations: 110.8 kB / 295.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.005576, allocations: 85.11 kB / 296 MB, free: 2.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.747e-05/0.005604, allocations: 89.86 kB / 296.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.005612, allocations: 25.7 kB / 296.1 MB, free: 2.621 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.798e-05/0.00563, allocations: 80.14 kB / 296.2 MB, free: 2.539 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.005644, allocations: 0 / 296.2 MB, free: 2.539 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.005668, allocations: 17.66 kB / 296.2 MB, free: 2.516 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.988e-05/0.005747, allocations: 318.8 kB / 296.5 MB, free: 2.195 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.471e-05/0.005762, allocations: 33.83 kB / 296.5 MB, free: 2.156 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.255e-05/0.005775, allocations: 25.7 kB / 296.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.77e-05/0.005812, allocations: 60.27 kB / 296.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.005814, allocations: 0 / 296.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.812e-05/0.005862, allocations: 89.08 kB / 296.7 MB, free: 1.945 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.005894, allocations: 33.7 kB / 296.8 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.0059, allocations: 4 kB / 296.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-06/0.005907, allocations: 0 / 296.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.038e-06/0.005911, allocations: 0 / 296.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-06/0.005915, allocations: 8.031 kB / 296.8 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.705e-05/0.005932, allocations: 4.688 kB / 296.8 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.005938, allocations: 3.938 kB / 296.8 MB, free: 1.887 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 5.507e-05/0.005993, allocations: 139.5 kB / 296.9 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-06/0.005999, allocations: 4 kB / 296.9 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.374e-06/0.006006, allocations: 3 kB / 296.9 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.006007, allocations: 0 / 296.9 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.006009, allocations: 0 / 296.9 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.006011, allocations: 0 / 296.9 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.418e-05/0.006055, allocations: 73.83 kB / 297 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.006055, allocations: 4 kB / 297 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.006056, allocations: 3.938 kB / 297 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-06/0.00606, allocations: 0 / 297 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-07/0.006061, allocations: 0 / 297 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.006066, allocations: 7.984 kB / 297 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.006067, allocations: 0 / 297 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.006068, allocations: 0 / 297 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.935e-05/0.006127, allocations: 116.4 kB / 297.1 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-06/0.006136, allocations: 0 / 297.1 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.538e-06/0.00614, allocations: 4 kB / 297.1 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-06/0.006147, allocations: 0 / 297.1 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-06/0.006148, allocations: 4.031 kB / 297.1 MB, free: 1.473 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.492e-06/0.006155, allocations: 4.859 kB / 297.1 MB, free: 1.465 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006155, allocations: 0 / 297.1 MB, free: 1.465 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001102/0.006265, allocations: 19.94 kB / 297.1 MB, free: 1.445 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.0002542/0.006519, allocations: 130.3 kB / 297.3 MB, free: 1.324 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.397e-05/0.006603, allocations: 127.6 kB / 297.4 MB, free: 1.172 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.006606, allocations: 4.062 kB / 297.4 MB, free: 1.168 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.024e-05/0.006636, allocations: 85.97 kB / 297.5 MB, free: 1.062 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5e-05/0.006686, allocations: 9.656 kB / 297.5 MB, free: 1.055 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001446/0.006831, allocations: 119.3 kB / 297.6 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.637e-05/0.006857, allocations: 51.36 kB / 297.7 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.474e-06/0.006865, allocations: 4 kB / 297.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.535e-05/0.0069, allocations: 55.36 kB / 297.7 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.006901, allocations: 0 / 297.7 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of Templates: time 0.002119/0.009019, allocations: 0.7522 MB / 298.5 MB, free: 32 kB / 282.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6808321867138147]