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.001465/0.001465, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001786/0.001786, allocations: 207.4 kB / 24.48 MB, free: 3.977 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.471/1.471, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.2291/0.2291, allocations: 46.96 MB / 361.6 MB, free: 4.066 MB / 286.1 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 0.002042/0.002042, allocations: 67.89 kB / 0.4973 GB, free: 7.254 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3097, allocations: 66.04 MB / 0.5618 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001591/0.3113, allocations: 489 kB / 0.5623 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002291/0.3136, allocations: 1.587 MB / 0.5638 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.339e-05/0.3136, allocations: 0 / 0.5638 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.157e-05/0.3136, allocations: 3.938 kB / 0.5638 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-06/0.3136, allocations: 4 kB / 0.5638 GB, free: 2.105 MB / 398.1 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.0006753/0.3143, allocations: 148.1 kB / 0.564 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.086e-05/0.3143, allocations: 11.98 kB / 0.564 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.144e-05/0.3144, allocations: 0 / 0.564 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.529e-05/0.3144, allocations: 0 / 0.564 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.617e-05/0.3144, allocations: 7.938 kB / 0.564 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.725e-06/0.3144, allocations: 0 / 0.564 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003751/0.3148, allocations: 123.8 kB / 0.5641 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.3148, allocations: 3.984 kB / 0.5641 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.337e-05/0.3148, allocations: 0 / 0.5641 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.315, allocations: 38.64 kB / 0.5641 GB, free: 1.781 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.315, allocations: 0 / 0.5641 GB, free: 1.781 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.315, allocations: 0 / 0.5641 GB, free: 1.781 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.315, allocations: 0 / 0.5641 GB, free: 1.781 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.0003375/0.3153, allocations: 279.8 kB / 0.5644 GB, free: 1.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.3154, allocations: 8.031 kB / 0.5644 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.3154, allocations: 4.938 kB / 0.5644 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.867e-05/0.3155, allocations: 102.5 kB / 0.5645 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.3155, allocations: 384 / 0.5645 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.3155, allocations: 4.359 kB / 0.5645 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.445e-05/0.3156, allocations: 63.7 kB / 0.5646 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3156, allocations: 7.875 kB / 0.5646 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.3156, allocations: 0 / 0.5646 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.3156, allocations: 0 / 0.5646 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.331e-05/0.3156, allocations: 29.7 kB / 0.5646 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000118/0.3158, allocations: 101.3 kB / 0.5647 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.792e-05/0.3158, allocations: 44.31 kB / 0.5648 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.045e-05/0.3159, allocations: 34.55 kB / 0.5648 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.3159, allocations: 0 / 0.5648 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.131e-05/0.3159, allocations: 60.33 kB / 0.5649 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.3159, allocations: 0 / 0.5649 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002056/0.3161, allocations: 126.7 kB / 0.565 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.3162, allocations: 77.11 kB / 0.565 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.936e-05/0.3163, allocations: 93.81 kB / 0.5651 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.3163, allocations: 25.83 kB / 0.5652 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.308e-05/0.3163, allocations: 84.14 kB / 0.5652 GB, free: 464 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.285e-05/0.3163, allocations: 7.938 kB / 0.5652 GB, free: 456 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.662e-05/0.3163, allocations: 9.719 kB / 0.5653 GB, free: 440 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3165, allocations: 318.8 kB / 0.5656 GB, free: 112 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.251e-05/0.3165, allocations: 25.7 kB / 0.5656 GB, free: 80 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.126e-05/0.3165, allocations: 29.7 kB / 0.5656 GB, free: 44 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.705e-05/0.3166, allocations: 68.19 kB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3166, allocations: 0 / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.748e-05/0.3167, allocations: 89.11 kB / 0.5658 GB, free: 15.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.3167, allocations: 33.8 kB / 0.5658 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.3167, allocations: 0 / 0.5658 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.3167, allocations: 11.92 kB / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.11e-07/0.3167, allocations: 0 / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.3167, allocations: 0 / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.21e-05/0.3167, allocations: 0 / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-06/0.3167, allocations: 0 / 0.5658 GB, free: 15.8 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 8.861e-05/0.3168, allocations: 135.5 kB / 0.5659 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.775e-06/0.3168, allocations: 0 / 0.5659 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.102e-05/0.3169, allocations: 6.938 kB / 0.5659 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.3169, allocations: 4 kB / 0.5659 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.3169, allocations: 0 / 0.5659 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.3169, allocations: 4 kB / 0.566 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.153e-05/0.3169, allocations: 101.2 kB / 0.566 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3169, allocations: 4 kB / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3169, allocations: 0 / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3169, allocations: 0 / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.3169, allocations: 11.94 kB / 0.5661 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3169, allocations: 3.938 kB / 0.5661 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3169, allocations: 0 / 0.5661 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001178/0.3171, allocations: 120.5 kB / 0.5662 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-06/0.3171, allocations: 0 / 0.5662 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.044e-05/0.3171, allocations: 0 / 0.5662 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.217e-05/0.3171, allocations: 7.938 kB / 0.5662 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.3171, allocations: 3.984 kB / 0.5662 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3171, allocations: 0 / 0.5662 GB, free: 15.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.592e-05/0.3171, allocations: 75.28 kB / 0.5663 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3171, allocations: 0 / 0.5663 GB, free: 15.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.3174, allocations: 19.92 kB / 0.5663 GB, free: 15.24 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.000348/0.3177, allocations: 148 kB / 0.5664 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001336/0.3178, allocations: 118.7 kB / 0.5665 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3178, allocations: 0 / 0.5665 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.595e-05/0.3179, allocations: 81.11 kB / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.318, allocations: 0 / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002012/0.3182, allocations: 118.8 kB / 0.5667 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.788e-05/0.3183, allocations: 55.36 kB / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.328e-06/0.3183, allocations: 0 / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.61e-05/0.3183, allocations: 11.56 kB / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3183, allocations: 0 / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of Templates: time 0.00304/0.3213, allocations: 0.6546 MB / 0.5674 GB, free: 13.97 MB / 414.1 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=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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: 4.72506500298914]