Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 109.5 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002051/0.002051, allocations: 209.2 kB / 23.54 MB, free: 5.391 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 230.2 MB / 256.7 MB, free: 8.637 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2191/0.2191, allocations: 46.89 MB / 359.9 MB, free: 4.984 MB / 286.1 MB [Timeout remaining time 90] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 75.88 kB / 0.4949 GB, free: 8.703 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3104, allocations: 65.99 MB / 0.5594 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001492/0.3119, allocations: 481 kB / 0.5598 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.314, allocations: 1.66 MB / 0.5615 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.965e-05/0.314, allocations: 0 / 0.5615 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.023e-05/0.314, allocations: 0 / 0.5615 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.589e-06/0.314, allocations: 4 kB / 0.5615 GB, free: 3.023 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0006119/0.3147, allocations: 163.2 kB / 0.5616 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.738e-05/0.3147, allocations: 4 kB / 0.5616 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.883e-05/0.3147, allocations: 3.984 kB / 0.5616 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.251e-05/0.3148, allocations: 7.938 kB / 0.5616 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.065e-05/0.3148, allocations: 4 kB / 0.5616 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-06/0.3148, allocations: 0 / 0.5616 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000354/0.3151, allocations: 119.9 kB / 0.5618 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.113e-06/0.3151, allocations: 4 kB / 0.5618 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.497e-05/0.3152, allocations: 0 / 0.5618 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.3153, allocations: 34.62 kB / 0.5618 GB, free: 2.695 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3153, allocations: 0 / 0.5618 GB, free: 2.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3153, allocations: 0 / 0.5618 GB, free: 2.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.3153, allocations: 0 / 0.5618 GB, free: 2.695 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.0003431/0.3156, allocations: 356.8 kB / 0.5621 GB, free: 2.297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3157, allocations: 16.02 kB / 0.5622 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.502e-05/0.3157, allocations: 4.875 kB / 0.5622 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.3158, allocations: 160.4 kB / 0.5623 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3158, allocations: 4.312 kB / 0.5623 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.3158, allocations: 384 / 0.5623 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.215e-05/0.3159, allocations: 34.02 kB / 0.5623 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.3159, allocations: 0 / 0.5623 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.3159, allocations: 0 / 0.5623 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3159, allocations: 4 kB / 0.5624 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.3159, allocations: 4 kB / 0.5624 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001421/0.3161, allocations: 149.7 kB / 0.5625 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.653e-05/0.3161, allocations: 18.52 kB / 0.5625 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.802e-05/0.3162, allocations: 12.95 kB / 0.5625 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.3162, allocations: 0 / 0.5625 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.3162, allocations: 60.2 kB / 0.5626 GB, free: 1.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3162, allocations: 4 kB / 0.5626 GB, free: 1.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001689/0.3164, allocations: 67.39 kB / 0.5627 GB, free: 1.637 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.3164, allocations: 81.05 kB / 0.5627 GB, free: 1.539 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.634e-05/0.3165, allocations: 93.81 kB / 0.5628 GB, free: 1.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.3165, allocations: 25.7 kB / 0.5628 GB, free: 1.406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.918e-05/0.3166, allocations: 80.14 kB / 0.5629 GB, free: 1.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.3166, allocations: 4 kB / 0.5629 GB, free: 1.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.67e-05/0.3166, allocations: 9.719 kB / 0.5629 GB, free: 1.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.3167, allocations: 315 kB / 0.5632 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.443e-05/0.3167, allocations: 7.984 kB / 0.5632 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.99e-06/0.3167, allocations: 0 / 0.5632 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.701e-05/0.3168, allocations: 64.27 kB / 0.5633 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.3168, allocations: 0 / 0.5633 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.974e-05/0.3169, allocations: 55.41 kB / 0.5634 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.3169, allocations: 45.56 kB / 0.5634 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.3169, allocations: 96 / 0.5634 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.3169, allocations: 4 kB / 0.5634 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-07/0.3169, allocations: 0 / 0.5634 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.3169, allocations: 0 / 0.5634 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.492e-05/0.3169, allocations: 4 kB / 0.5634 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.3169, allocations: 0 / 0.5634 GB, free: 0.7773 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 8.814e-05/0.317, allocations: 135.5 kB / 0.5635 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.317, allocations: 7.938 kB / 0.5635 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.013e-06/0.3171, allocations: 3.125 kB / 0.5635 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.01e-07/0.3171, allocations: 3.938 kB / 0.5636 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3171, allocations: 4 kB / 0.5636 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.3171, allocations: 0 / 0.5636 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.87e-05/0.3172, allocations: 145.7 kB / 0.5637 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3172, allocations: 3.938 kB / 0.5637 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.941e-06/0.3172, allocations: 4 kB / 0.5637 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.3172, allocations: 3.938 kB / 0.5637 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.3172, allocations: 0 / 0.5637 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.3172, allocations: 0 / 0.5637 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.3172, allocations: 0 / 0.5637 GB, free: 420 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.3173, allocations: 98.77 kB / 0.5638 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.124e-05/0.3173, allocations: 81.09 kB / 0.5639 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3173, allocations: 3.938 kB / 0.5639 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.3173, allocations: 0 / 0.5639 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.435e-05/0.3174, allocations: 7.984 kB / 0.5639 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.3174, allocations: 0 / 0.5639 GB, free: 184 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.336e-05/0.3174, allocations: 75.28 kB / 0.564 GB, free: 108 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3174, allocations: 0 / 0.564 GB, free: 108 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.3176, allocations: 23.97 kB / 0.564 GB, free: 84 kB / 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.0002979/0.3179, allocations: 140.2 kB / 0.5641 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.28e-05/0.318, allocations: 59.41 kB / 0.5642 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.318, allocations: 0 / 0.5642 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.745e-05/0.3181, allocations: 55.41 kB / 0.5642 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.3182, allocations: 8.062 kB / 0.5642 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001877/0.3184, allocations: 114.8 kB / 0.5643 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.3187, allocations: 0.669 MB / 0.565 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.349e-05/0.3187, allocations: 7.438 kB / 0.565 GB, free: 14.95 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3187, allocations: 0 / 0.565 GB, free: 14.95 MB / 414.1 MB Notification: Performance of Templates: time 0.002218/0.3209, allocations: 0.6789 MB / 0.5657 GB, free: 14.27 MB / 414.1 MB [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches