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.001232/0.001232, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001216/0.001216, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9928/0.9928, allocations: 177.2 MB / 205 MB, free: 5.285 MB / 186.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.2614/0.2614, allocations: 34.26 MB / 295.7 MB, free: 0.6992 MB / 266.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.753e-06/1.753e-06, allocations: 0 / 378 MB, free: 2.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.488e-05/2.663e-05, allocations: 2.312 kB / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001324/0.001351, allocations: 0.5007 MB / 378.5 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.003195, allocations: 1.634 MB / 380.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.251e-05/0.003217, allocations: 3.938 kB / 380.2 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.753e-05/0.003235, allocations: 0 / 380.2 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.361e-06/0.003241, allocations: 0 / 380.2 MB, free: 0.5273 MB / 346.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.0005994/0.003841, allocations: 167.1 kB / 380.3 MB, free: 372 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.618e-05/0.003897, allocations: 12 kB / 380.3 MB, free: 360 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.00393, allocations: 0 / 380.3 MB, free: 360 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.756e-05/0.003957, allocations: 0 / 380.3 MB, free: 360 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.657e-05/0.003984, allocations: 3.984 kB / 380.3 MB, free: 356 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.467e-06/0.003994, allocations: 0 / 380.3 MB, free: 356 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003333/0.004327, allocations: 115.8 kB / 380.5 MB, free: 240 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.004336, allocations: 3.984 kB / 380.5 MB, free: 236 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.004355, allocations: 0 / 380.5 MB, free: 236 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.004464, allocations: 43.89 kB / 380.5 MB, free: 192 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.004466, allocations: 4 kB / 380.5 MB, free: 188 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.004467, allocations: 0 / 380.5 MB, free: 188 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.004472, allocations: 0 / 380.5 MB, free: 188 kB / 346.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.0002929/0.004765, allocations: 378 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.004807, allocations: 11.97 kB / 380.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.004847, allocations: 0.9375 kB / 380.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.305e-05/0.00491, allocations: 112.6 kB / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.004921, allocations: 384 / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-06/0.004929, allocations: 384 / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.818e-05/0.005017, allocations: 59.95 kB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.005024, allocations: 192 / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.005034, allocations: 4.375 kB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.005042, allocations: 3.938 kB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.351e-05/0.005065, allocations: 29.69 kB / 381.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.443e-05/0.00515, allocations: 108.6 kB / 381.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.679e-05/0.005196, allocations: 60.73 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.141e-05/0.005218, allocations: 37.39 kB / 381.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.229e-06/0.005223, allocations: 7.922 kB / 381.3 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.005263, allocations: 63.16 kB / 381.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.005264, allocations: 0 / 381.4 MB, free: 15.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.005427, allocations: 114.8 kB / 381.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.005475, allocations: 92.97 kB / 381.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.083e-05/0.005516, allocations: 142.2 kB / 381.7 MB, free: 14.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.005524, allocations: 25.7 kB / 381.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.544e-05/0.00555, allocations: 126.9 kB / 381.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.005566, allocations: 4.344 kB / 381.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.301e-05/0.005589, allocations: 15.38 kB / 381.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.005689, allocations: 492.1 kB / 382.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.199e-05/0.005711, allocations: 29.7 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.354e-05/0.005724, allocations: 25.7 kB / 382.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.95e-05/0.005774, allocations: 75.27 kB / 382.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.005776, allocations: 0 / 382.5 MB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.927e-05/0.005845, allocations: 93 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.005872, allocations: 29.7 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.005877, allocations: 0 / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.00589, allocations: 4 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.396e-06/0.005894, allocations: 0 / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.005901, allocations: 7.922 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.259e-05/0.005914, allocations: 4 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-06/0.005919, allocations: 0 / 382.6 MB, free: 13.77 MB / 362.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.646e-05/0.005996, allocations: 190.3 kB / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.032e-06/0.006002, allocations: 0 / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.485e-06/0.00601, allocations: 3 kB / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.006012, allocations: 0 / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.006015, allocations: 4 kB / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.006018, allocations: 3.938 kB / 382.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.837e-05/0.006076, allocations: 108.6 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.006077, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.006078, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.00608, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.006086, allocations: 4 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.006088, allocations: 4 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.006089, allocations: 0 / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.346e-05/0.006183, allocations: 139.7 kB / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-06/0.006187, allocations: 0 / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.0062, allocations: 4 kB / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.939e-06/0.006205, allocations: 0 / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.038e-05/0.006215, allocations: 0 / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.006218, allocations: 0 / 383.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.006251, allocations: 123.1 kB / 383.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.006251, allocations: 0 / 383.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001498/0.006401, allocations: 23.97 kB / 383.2 MB, free: 13.09 MB / 362.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.0002746/0.006675, allocations: 149.5 kB / 383.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.006786, allocations: 118.5 kB / 383.5 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.006788, allocations: 0 / 383.5 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.035e-05/0.006818, allocations: 92.73 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001072/0.006925, allocations: 6.188 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001802/0.007105, allocations: 121.8 kB / 383.7 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.851e-05/0.007134, allocations: 51.36 kB / 383.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.26e-06/0.007139, allocations: 0 / 383.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.007153, allocations: 8.5 kB / 383.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.007153, allocations: 0 / 383.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of Templates: time 0.002484/0.009638, allocations: 0.7429 MB / 384.5 MB, free: 11.7 MB / 362.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 -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.9350171559490263]