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.001965/0.001965, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002138/0.002138, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.234/0.234, allocations: 44.94 MB / 359.6 MB, free: 6.051 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003443/0.003443, allocations: 67.91 kB / 0.4942 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3787, allocations: 65.48 MB / 0.5582 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001989/0.3807, allocations: 0.4893 MB / 0.5587 GB, free: 7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.3835, allocations: 1.575 MB / 0.5602 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.99e-05/0.3835, allocations: 0 / 0.5602 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.404e-05/0.3835, allocations: 0 / 0.5602 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.843e-06/0.3835, allocations: 0 / 0.5602 GB, free: 5.41 MB / 398.1 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.0007894/0.3843, allocations: 167.4 kB / 0.5603 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.152e-05/0.3844, allocations: 8 kB / 0.5604 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.38e-05/0.3844, allocations: 0 / 0.5604 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.683e-05/0.3845, allocations: 3.938 kB / 0.5604 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.089e-05/0.3845, allocations: 0 / 0.5604 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.3845, allocations: 3.938 kB / 0.5604 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004376/0.3849, allocations: 119.9 kB / 0.5605 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-06/0.3849, allocations: 0 / 0.5605 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.305e-05/0.385, allocations: 0 / 0.5605 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.3851, allocations: 42.62 kB / 0.5605 GB, free: 5.074 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3851, allocations: 4 kB / 0.5605 GB, free: 5.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3851, allocations: 0 / 0.5605 GB, free: 5.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.3851, allocations: 0 / 0.5605 GB, free: 5.07 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.0004088/0.3855, allocations: 275.8 kB / 0.5608 GB, free: 4.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3856, allocations: 8.031 kB / 0.5608 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.3856, allocations: 0.9375 kB / 0.5608 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.586e-05/0.3857, allocations: 106.5 kB / 0.5609 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.3857, allocations: 384 / 0.5609 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.3857, allocations: 4.312 kB / 0.5609 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/0.3859, allocations: 67.64 kB / 0.561 GB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3859, allocations: 4 kB / 0.561 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.3859, allocations: 0 / 0.561 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3859, allocations: 0 / 0.561 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.848e-05/0.3859, allocations: 29.7 kB / 0.561 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001433/0.3861, allocations: 97.33 kB / 0.5611 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.996e-05/0.3862, allocations: 44.31 kB / 0.5611 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.405e-05/0.3862, allocations: 34.55 kB / 0.5612 GB, free: 4.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.3862, allocations: 0 / 0.5612 GB, free: 4.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/0.3863, allocations: 64.27 kB / 0.5612 GB, free: 4.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3863, allocations: 0 / 0.5612 GB, free: 4.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002374/0.3865, allocations: 126.7 kB / 0.5613 GB, free: 4.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.3866, allocations: 77.11 kB / 0.5614 GB, free: 3.965 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.266e-05/0.3866, allocations: 93.81 kB / 0.5615 GB, free: 3.863 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.3867, allocations: 25.7 kB / 0.5615 GB, free: 3.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.063e-05/0.3867, allocations: 80.14 kB / 0.5616 GB, free: 3.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.3867, allocations: 7.984 kB / 0.5616 GB, free: 3.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.608e-05/0.3867, allocations: 9.719 kB / 0.5616 GB, free: 3.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3869, allocations: 314.8 kB / 0.5619 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.974e-05/0.3869, allocations: 29.7 kB / 0.562 GB, free: 3.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.057e-05/0.387, allocations: 29.7 kB / 0.562 GB, free: 3.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.687e-05/0.387, allocations: 72.38 kB / 0.5621 GB, free: 3.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.387, allocations: 3.938 kB / 0.5621 GB, free: 3.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.443e-05/0.3871, allocations: 89.11 kB / 0.5621 GB, free: 3.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.464e-05/0.3872, allocations: 29.7 kB / 0.5622 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.3872, allocations: 0 / 0.5622 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.3872, allocations: 11.92 kB / 0.5622 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.689e-06/0.3872, allocations: 3.984 kB / 0.5622 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3872, allocations: 0 / 0.5622 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.547e-05/0.3872, allocations: 0 / 0.5622 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.3872, allocations: 0 / 0.5622 GB, free: 3.094 MB / 398.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 0.0001002/0.3873, allocations: 139.6 kB / 0.5623 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.263e-06/0.3874, allocations: 0 / 0.5623 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.207e-05/0.3874, allocations: 6.938 kB / 0.5623 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.3874, allocations: 0 / 0.5623 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3874, allocations: 3.938 kB / 0.5623 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.3874, allocations: 0 / 0.5623 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.282e-05/0.3875, allocations: 101.3 kB / 0.5624 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3875, allocations: 0 / 0.5624 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3875, allocations: 3.938 kB / 0.5624 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.3875, allocations: 0 / 0.5624 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.3875, allocations: 8 kB / 0.5624 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3875, allocations: 7.938 kB / 0.5624 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3875, allocations: 0 / 0.5624 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.3876, allocations: 120.5 kB / 0.5626 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-06/0.3876, allocations: 0 / 0.5626 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.3876, allocations: 0 / 0.5626 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.3876, allocations: 3.938 kB / 0.5626 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.3877, allocations: 4 kB / 0.5626 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.3877, allocations: 0 / 0.5626 GB, free: 2.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.97e-05/0.3877, allocations: 75.28 kB / 0.5626 GB, free: 2.551 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3877, allocations: 0 / 0.5626 GB, free: 2.551 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002301/0.3879, allocations: 23.95 kB / 0.5627 GB, free: 2.527 MB / 398.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.0003261/0.3883, allocations: 141.7 kB / 0.5628 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.3884, allocations: 118.7 kB / 0.5629 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3884, allocations: 0 / 0.5629 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.834e-05/0.3885, allocations: 81.11 kB / 0.563 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.3886, allocations: 0 / 0.563 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002404/0.3888, allocations: 148.6 kB / 0.5631 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.808e-05/0.3889, allocations: 55.36 kB / 0.5632 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.3889, allocations: 7.438 kB / 0.5632 GB, free: 1.883 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3889, allocations: 0 / 0.5632 GB, free: 1.883 MB / 398.1 MB Notification: Performance of Templates: time 0.002652/0.3916, allocations: 0.6673 MB / 0.5638 GB, free: 1.215 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 7.544175679795444]