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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 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.001911/0.001911, allocations: 212.5 kB / 25.13 MB, free: 3.605 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.561/1.561, allocations: 230.4 MB / 258.7 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2321/0.2321, allocations: 46.93 MB / 362 MB, free: 4.242 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-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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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.002564/0.002564, allocations: 79.86 kB / 0.4978 GB, free: 7.418 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3587, allocations: 66.09 MB / 0.5623 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001643/0.3604, allocations: 489.1 kB / 0.5628 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.3628, allocations: 1.664 MB / 0.5644 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.3628, allocations: 0 / 0.5644 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.3628, allocations: 3.938 kB / 0.5644 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.811e-06/0.3628, allocations: 0 / 0.5644 GB, free: 2.133 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.0007143/0.3636, allocations: 166.8 kB / 0.5646 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.901e-05/0.3636, allocations: 7.938 kB / 0.5646 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.08e-05/0.3637, allocations: 0 / 0.5646 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.452e-05/0.3637, allocations: 0 / 0.5646 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.696e-05/0.3637, allocations: 0 / 0.5646 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.484e-06/0.3637, allocations: 0 / 0.5646 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.3641, allocations: 127.9 kB / 0.5647 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.478e-06/0.3641, allocations: 0 / 0.5647 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.949e-05/0.3641, allocations: 3.938 kB / 0.5647 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001316/0.3643, allocations: 42.77 kB / 0.5647 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3643, allocations: 0 / 0.5647 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3643, allocations: 0 / 0.5647 GB, free: 1.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.3643, allocations: 0 / 0.5647 GB, free: 1.797 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.0003428/0.3646, allocations: 271.8 kB / 0.565 GB, free: 1.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3647, allocations: 15.97 kB / 0.565 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.3647, allocations: 4.938 kB / 0.565 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.595e-05/0.3648, allocations: 102.5 kB / 0.5651 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.3648, allocations: 4.375 kB / 0.5651 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.3648, allocations: 384 / 0.5651 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.3649, allocations: 63.7 kB / 0.5652 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.3649, allocations: 0 / 0.5652 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.3649, allocations: 0 / 0.5652 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.3649, allocations: 0 / 0.5652 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.444e-05/0.365, allocations: 33.69 kB / 0.5652 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.3651, allocations: 120.7 kB / 0.5653 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.777e-05/0.3652, allocations: 48.31 kB / 0.5654 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.969e-05/0.3652, allocations: 30.56 kB / 0.5654 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-06/0.3652, allocations: 0 / 0.5654 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/0.3653, allocations: 64.19 kB / 0.5655 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.3653, allocations: 64 / 0.5655 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000205/0.3655, allocations: 126.8 kB / 0.5656 GB, free: 0.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.3656, allocations: 77.11 kB / 0.5657 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.108e-05/0.3656, allocations: 97.8 kB / 0.5658 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.3656, allocations: 25.7 kB / 0.5658 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.3657, allocations: 80.14 kB / 0.5659 GB, free: 448 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.3657, allocations: 0 / 0.5659 GB, free: 448 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.3657, allocations: 13.72 kB / 0.5659 GB, free: 428 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3658, allocations: 310.8 kB / 0.5662 GB, free: 108 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.945e-05/0.3659, allocations: 41.77 kB / 0.5662 GB, free: 60 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.091e-05/0.3659, allocations: 29.7 kB / 0.5662 GB, free: 24 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.995e-05/0.366, allocations: 56.27 kB / 0.5663 GB, free: 15.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.366, allocations: 4 kB / 0.5663 GB, free: 15.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.111e-05/0.366, allocations: 93.03 kB / 0.5664 GB, free: 15.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/0.3661, allocations: 39.67 kB / 0.5664 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3661, allocations: 3.984 kB / 0.5664 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3661, allocations: 0 / 0.5664 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3661, allocations: 4.094 kB / 0.5664 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.3661, allocations: 0 / 0.5664 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.521e-05/0.3661, allocations: 0 / 0.5664 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.3661, allocations: 7.984 kB / 0.5664 GB, free: 15.78 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.807e-05/0.3662, allocations: 136.4 kB / 0.5666 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-06/0.3662, allocations: 3.938 kB / 0.5666 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.404e-05/0.3663, allocations: 7 kB / 0.5666 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3663, allocations: 0 / 0.5666 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3663, allocations: 0 / 0.5666 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.3663, allocations: 4 kB / 0.5666 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.892e-05/0.3664, allocations: 120.8 kB / 0.5667 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3664, allocations: 0 / 0.5667 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-06/0.3664, allocations: 4 kB / 0.5667 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.3664, allocations: 3.938 kB / 0.5667 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.3664, allocations: 0 / 0.5667 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3664, allocations: 0 / 0.5667 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3664, allocations: 0 / 0.5667 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.3665, allocations: 128.5 kB / 0.5668 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-06/0.3665, allocations: 0 / 0.5668 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.3665, allocations: 3.938 kB / 0.5668 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.123e-05/0.3665, allocations: 4 kB / 0.5668 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-06/0.3665, allocations: 0 / 0.5668 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.3665, allocations: 0 / 0.5668 GB, free: 15.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.134e-05/0.3666, allocations: 75.28 kB / 0.5669 GB, free: 15.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3666, allocations: 0 / 0.5669 GB, free: 15.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.3668, allocations: 19.92 kB / 0.5669 GB, free: 15.19 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.0003377/0.3671, allocations: 145.3 kB / 0.5671 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.3672, allocations: 114.8 kB / 0.5672 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3673, allocations: 0 / 0.5672 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.571e-05/0.3673, allocations: 85.05 kB / 0.5673 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.3674, allocations: 0 / 0.5673 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002106/0.3676, allocations: 122.9 kB / 0.5674 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3679, allocations: 0.669 MB / 0.568 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.149e-06/0.3679, allocations: 0 / 0.568 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.395e-05/0.3679, allocations: 11.44 kB / 0.568 GB, free: 13.95 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3679, allocations: 3.938 kB / 0.568 GB, free: 13.94 MB / 414.1 MB Notification: Performance of Templates: time 0.003193/0.3711, allocations: 0.6562 MB / 0.5687 GB, free: 13.29 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 -s gbode -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 [Calling sys.exit(0), Time elapsed: 5.00736578903161]