Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001849/0.001849, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002944/0.002944, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 46.93 MB / 360.8 MB, free: 3.922 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00251/0.00251, allocations: 83.81 kB / 0.4966 GB, free: 7.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3679, allocations: 66.08 MB / 0.5612 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001556/0.3695, allocations: 499.2 kB / 0.5616 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.372, allocations: 1.579 MB / 0.5632 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.161e-05/0.372, allocations: 0 / 0.5632 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.372, allocations: 0 / 0.5632 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.781e-06/0.372, allocations: 0 / 0.5632 GB, free: 1.879 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0006777/0.3727, allocations: 170.5 kB / 0.5633 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.148e-05/0.3727, allocations: 0 / 0.5633 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.465e-05/0.3728, allocations: 4 kB / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.717e-05/0.3728, allocations: 0 / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.506e-05/0.3728, allocations: 0 / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.3728, allocations: 0 / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004036/0.3732, allocations: 127.8 kB / 0.5635 GB, free: 1.586 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.554e-06/0.3733, allocations: 3.938 kB / 0.5635 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.814e-05/0.3733, allocations: 0 / 0.5635 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.3734, allocations: 39.61 kB / 0.5635 GB, free: 1.547 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3734, allocations: 0 / 0.5635 GB, free: 1.547 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3734, allocations: 3.938 kB / 0.5635 GB, free: 1.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3734, allocations: 0 / 0.5635 GB, free: 1.543 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.0003871/0.3738, allocations: 278.8 kB / 0.5638 GB, free: 1.238 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3738, allocations: 8.031 kB / 0.5638 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.3739, allocations: 0.9375 kB / 0.5638 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.053e-05/0.374, allocations: 106.5 kB / 0.5639 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.374, allocations: 8.375 kB / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.374, allocations: 384 / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.3741, allocations: 59.72 kB / 0.5639 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3741, allocations: 0 / 0.5639 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.3741, allocations: 0 / 0.5639 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.3741, allocations: 0 / 0.5639 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.328e-05/0.3742, allocations: 29.69 kB / 0.564 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001192/0.3743, allocations: 101.3 kB / 0.5641 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.155e-05/0.3744, allocations: 44.22 kB / 0.5641 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.924e-05/0.3744, allocations: 38.59 kB / 0.5642 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.437e-06/0.3744, allocations: 4 kB / 0.5642 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.994e-05/0.3744, allocations: 56.27 kB / 0.5642 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3744, allocations: 0 / 0.5642 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002104/0.3747, allocations: 126.7 kB / 0.5643 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.3747, allocations: 81.11 kB / 0.5644 GB, free: 444 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.354e-05/0.3748, allocations: 93.81 kB / 0.5645 GB, free: 340 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.3748, allocations: 25.7 kB / 0.5645 GB, free: 308 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.858e-05/0.3748, allocations: 80.14 kB / 0.5646 GB, free: 224 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.3748, allocations: 0 / 0.5646 GB, free: 224 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.3749, allocations: 17.7 kB / 0.5646 GB, free: 200 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.375, allocations: 319 kB / 0.5649 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.073e-05/0.3751, allocations: 25.7 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.369e-05/0.3751, allocations: 33.7 kB / 0.565 GB, free: 15.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.307e-05/0.3751, allocations: 60.27 kB / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3751, allocations: 0 / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001626/0.3753, allocations: 97.03 kB / 0.5651 GB, free: 15.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.776e-05/0.3753, allocations: 29.7 kB / 0.5652 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3753, allocations: 0 / 0.5652 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3754, allocations: 3.938 kB / 0.5652 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.3754, allocations: 4.094 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.3754, allocations: 0 / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.833e-05/0.3754, allocations: 7.938 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.3754, allocations: 0 / 0.5652 GB, free: 15.57 MB / 414.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 9.657e-05/0.3755, allocations: 135.5 kB / 0.5653 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-06/0.3755, allocations: 4 kB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.259e-05/0.3755, allocations: 6.938 kB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3755, allocations: 0 / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3755, allocations: 4 kB / 0.5653 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3755, allocations: 0 / 0.5653 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.3757, allocations: 105.3 kB / 0.5654 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3757, allocations: 0 / 0.5654 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3757, allocations: 0 / 0.5654 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3757, allocations: 0 / 0.5654 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3757, allocations: 4 kB / 0.5654 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.905e-06/0.3757, allocations: 7.922 kB / 0.5654 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.3757, allocations: 3.938 kB / 0.5654 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.3758, allocations: 116.5 kB / 0.5655 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-06/0.3758, allocations: 7.984 kB / 0.5655 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.3758, allocations: 0 / 0.5655 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.126e-05/0.3759, allocations: 3.938 kB / 0.5655 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.665e-05/0.3759, allocations: 4.031 kB / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.3759, allocations: 4 kB / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.673e-05/0.3759, allocations: 75.28 kB / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3759, allocations: 0 / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002072/0.3761, allocations: 15.94 kB / 0.5656 GB, free: 15 MB / 414.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.000343/0.3765, allocations: 140.8 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.3766, allocations: 114.8 kB / 0.5659 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3766, allocations: 3.938 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.657e-05/0.3767, allocations: 81.11 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.3768, allocations: 7.938 kB / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002109/0.377, allocations: 114.8 kB / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.3771, allocations: 55.34 kB / 0.5661 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.3771, allocations: 0 / 0.5661 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.609e-05/0.3772, allocations: 11.44 kB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3772, allocations: 0 / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of Templates: time 0.003207/0.3804, allocations: 0.6369 MB / 0.5668 GB, free: 13.75 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 5.247876243665814]