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.001616/0.001616, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002397/0.002397, allocations: 213.1 kB / 24.48 MB, free: 3.957 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.509/1.509, allocations: 230.6 MB / 258.3 MB, free: 7.738 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.2429/0.2429, allocations: 46.96 MB / 361.6 MB, free: 4.02 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.001996/0.001996, allocations: 63.89 kB / 0.4973 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3357, allocations: 66.04 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002228/0.3379, allocations: 489 kB / 0.5623 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.3413, allocations: 1.579 MB / 0.5638 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.732e-05/0.3413, allocations: 0 / 0.5638 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.3413, allocations: 0 / 0.5638 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.504e-06/0.3413, allocations: 4 kB / 0.5638 GB, free: 2.086 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.0009166/0.3422, allocations: 166.5 kB / 0.564 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.152e-05/0.3423, allocations: 3.984 kB / 0.564 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.927e-05/0.3424, allocations: 4 kB / 0.564 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.6e-05/0.3424, allocations: 4 kB / 0.564 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.526e-05/0.3424, allocations: 0 / 0.564 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.3424, allocations: 0 / 0.564 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005326/0.3429, allocations: 123.9 kB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-06/0.343, allocations: 0 / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.774e-05/0.343, allocations: 0 / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.3432, allocations: 39.61 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3432, allocations: 0 / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3432, allocations: 0 / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3432, allocations: 4 kB / 0.5641 GB, free: 1.754 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.0004768/0.3437, allocations: 274.7 kB / 0.5644 GB, free: 1.453 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.3437, allocations: 11.97 kB / 0.5644 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.3437, allocations: 0.9375 kB / 0.5644 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.3439, allocations: 114.5 kB / 0.5645 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.3439, allocations: 384 / 0.5645 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.3439, allocations: 384 / 0.5645 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.344, allocations: 59.72 kB / 0.5646 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.344, allocations: 0 / 0.5646 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.344, allocations: 3.984 kB / 0.5646 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.344, allocations: 3.984 kB / 0.5646 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.813e-05/0.3441, allocations: 25.7 kB / 0.5646 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001497/0.3442, allocations: 97.33 kB / 0.5647 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.159e-05/0.3443, allocations: 48.31 kB / 0.5648 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.142e-05/0.3444, allocations: 34.56 kB / 0.5648 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.3444, allocations: 4 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.906e-05/0.3445, allocations: 56.27 kB / 0.5649 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.3445, allocations: 0 / 0.5649 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002721/0.3447, allocations: 126.7 kB / 0.565 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.3448, allocations: 81.05 kB / 0.565 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.562e-05/0.3449, allocations: 93.81 kB / 0.5651 GB, free: 0.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.3449, allocations: 25.7 kB / 0.5652 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.345, allocations: 84.08 kB / 0.5652 GB, free: 436 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.345, allocations: 3.984 kB / 0.5652 GB, free: 432 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.262e-05/0.345, allocations: 13.84 kB / 0.5653 GB, free: 412 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3452, allocations: 314.8 kB / 0.5656 GB, free: 88 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.535e-05/0.3452, allocations: 33.7 kB / 0.5656 GB, free: 48 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.758e-05/0.3453, allocations: 29.7 kB / 0.5656 GB, free: 12 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.3454, allocations: 60.27 kB / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3454, allocations: 0 / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001302/0.3455, allocations: 89.09 kB / 0.5658 GB, free: 15.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.605e-05/0.3455, allocations: 36.36 kB / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3455, allocations: 3.938 kB / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.3456, allocations: 8.031 kB / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.3456, allocations: 4 kB / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3456, allocations: 0 / 0.5658 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.078e-05/0.3456, allocations: 4 kB / 0.5658 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.3456, allocations: 3.938 kB / 0.5658 GB, free: 15.77 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 0.0001289/0.3457, allocations: 139.5 kB / 0.566 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.3457, allocations: 0 / 0.566 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.768e-05/0.3458, allocations: 6.938 kB / 0.566 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3458, allocations: 0 / 0.566 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3458, allocations: 0 / 0.566 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3458, allocations: 0 / 0.566 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.3459, allocations: 101.3 kB / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3459, allocations: 0 / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.577e-06/0.3459, allocations: 3.984 kB / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3459, allocations: 0 / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.3459, allocations: 0 / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3459, allocations: 3.938 kB / 0.5661 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3459, allocations: 0 / 0.5661 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.3461, allocations: 124.5 kB / 0.5662 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.273e-06/0.3461, allocations: 8 kB / 0.5662 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.3461, allocations: 0 / 0.5662 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.559e-05/0.3461, allocations: 7.969 kB / 0.5662 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.924e-05/0.3461, allocations: 0 / 0.5662 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-06/0.3461, allocations: 4 kB / 0.5662 GB, free: 15.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.989e-05/0.3462, allocations: 75.28 kB / 0.5663 GB, free: 15.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3462, allocations: 0 / 0.5663 GB, free: 15.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.3466, allocations: 15.94 kB / 0.5663 GB, free: 15.21 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.0003978/0.347, allocations: 141 kB / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001917/0.3472, allocations: 122.8 kB / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3472, allocations: 0 / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.833e-05/0.3472, allocations: 77.11 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.3474, allocations: 4 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003014/0.3477, allocations: 148.4 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.788e-05/0.3478, allocations: 59.34 kB / 0.5668 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.71e-05/0.3478, allocations: 7.438 kB / 0.5668 GB, free: 14.56 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3478, allocations: 3.938 kB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of Templates: time 0.003069/0.3509, allocations: 0.6712 MB / 0.5675 GB, free: 13.88 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 -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: 7.383400254009757]