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.0008588/0.0008588, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0009376/0.0009376, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.8867/0.8867, allocations: 177.1 MB / 205.3 MB, free: 4.488 MB / 186.7 MB " [Timeout remaining time 179] 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.1288/0.1288, allocations: 34.26 MB / 296.1 MB, free: 13.98 MB / 282.7 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 1.413e-06/1.413e-06, allocations: 0 / 325.2 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.453e-05/1.594e-05, allocations: 2.312 kB / 325.2 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0009288/0.0009448, allocations: 0.4962 MB / 325.7 MB, free: 312 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.002567, allocations: 1.637 MB / 327.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.021e-05/0.002588, allocations: 0 / 327.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.206e-05/0.0026, allocations: 0 / 327.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.002607, allocations: 7.938 kB / 327.4 MB, free: 14.64 MB / 314.7 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.0004718/0.003079, allocations: 163.1 kB / 327.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.731e-05/0.003126, allocations: 0 / 327.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.582e-05/0.003162, allocations: 7.938 kB / 327.5 MB, free: 14.47 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.911e-05/0.003191, allocations: 4 kB / 327.5 MB, free: 14.47 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.867e-05/0.003219, allocations: 4 kB / 327.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.003228, allocations: 0 / 327.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003383/0.003566, allocations: 107.9 kB / 327.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.176e-05/0.003578, allocations: 7.938 kB / 327.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.795e-05/0.003596, allocations: 7.984 kB / 327.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.003718, allocations: 39.89 kB / 327.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.003721, allocations: 4 kB / 327.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.003722, allocations: 0 / 327.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.003727, allocations: 0 / 327.7 MB, free: 14.3 MB / 314.7 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.000239/0.003966, allocations: 250.4 kB / 327.9 MB, free: 14.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.004007, allocations: 8.031 kB / 328 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.516e-05/0.004033, allocations: 4.922 kB / 328 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.724e-05/0.00409, allocations: 105.7 kB / 328.1 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.004099, allocations: 4.375 kB / 328.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.287e-06/0.004109, allocations: 4.375 kB / 328.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.054e-05/0.004179, allocations: 55.97 kB / 328.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.004185, allocations: 192 / 328.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-06/0.004192, allocations: 384 / 328.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.004199, allocations: 3.938 kB / 328.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.441e-05/0.004213, allocations: 29.7 kB / 328.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.426e-05/0.004277, allocations: 61.03 kB / 328.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.875e-05/0.004326, allocations: 52.25 kB / 328.3 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.525e-05/0.004341, allocations: 34.56 kB / 328.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-06/0.004345, allocations: 0 / 328.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.004378, allocations: 60.33 kB / 328.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.52e-07/0.004379, allocations: 0 / 328.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001181/0.004497, allocations: 114.7 kB / 328.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.004531, allocations: 77.11 kB / 328.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.899e-05/0.00456, allocations: 93.98 kB / 328.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-06/0.004567, allocations: 33.64 kB / 328.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.739e-05/0.004585, allocations: 80.14 kB / 328.8 MB, free: 13.06 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.265e-05/0.004597, allocations: 352 / 328.8 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.004616, allocations: 13.72 kB / 328.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.182e-05/0.004687, allocations: 322.8 kB / 329.1 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.338e-05/0.004701, allocations: 25.7 kB / 329.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.251e-05/0.004713, allocations: 29.7 kB / 329.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.628e-05/0.00475, allocations: 60.27 kB / 329.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.004752, allocations: 0 / 329.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.897e-05/0.004801, allocations: 93.16 kB / 329.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.004825, allocations: 29.7 kB / 329.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.00483, allocations: 0 / 329.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.004844, allocations: 3.984 kB / 329.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.639e-06/0.004849, allocations: 7.938 kB / 329.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-06/0.004852, allocations: 0 / 329.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.095e-06/0.00486, allocations: 0 / 329.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.004865, allocations: 3.938 kB / 329.3 MB, free: 12.42 MB / 314.7 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 5.346e-05/0.004919, allocations: 135.5 kB / 329.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.979e-06/0.004924, allocations: 3.984 kB / 329.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.252e-06/0.00493, allocations: 7.031 kB / 329.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.004931, allocations: 0 / 329.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.004932, allocations: 0 / 329.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.004934, allocations: 4 kB / 329.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.884e-05/0.004973, allocations: 65.8 kB / 329.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-07/0.004973, allocations: 0 / 329.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.004973, allocations: 0 / 329.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-07/0.004974, allocations: 0 / 329.5 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-06/0.004978, allocations: 4 kB / 329.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.004979, allocations: 0 / 329.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-07/0.004979, allocations: 0 / 329.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.727e-05/0.005037, allocations: 124.4 kB / 329.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-06/0.00504, allocations: 0 / 329.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.005051, allocations: 8 kB / 329.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.189e-06/0.005056, allocations: 7.922 kB / 329.7 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-06/0.005063, allocations: 0 / 329.7 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-06/0.005065, allocations: 0 / 329.7 MB, free: 12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.082e-06/0.005071, allocations: 4.859 kB / 329.7 MB, free: 12 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005071, allocations: 0 / 329.7 MB, free: 12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001053/0.005176, allocations: 19.94 kB / 329.7 MB, free: 11.98 MB / 314.7 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.0002332/0.005409, allocations: 134.8 kB / 329.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.816e-05/0.005507, allocations: 127.7 kB / 330 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.005509, allocations: 0 / 330 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.651e-05/0.005536, allocations: 85.97 kB / 330 MB, free: 11.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.238e-05/0.005578, allocations: 3.938 kB / 330 MB, free: 11.58 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001392/0.005717, allocations: 112 kB / 330.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.707e-05/0.005744, allocations: 51.48 kB / 330.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.039e-06/0.005749, allocations: 4 kB / 330.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.005781, allocations: 51.38 kB / 330.3 MB, free: 11.31 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.005781, allocations: 0 / 330.3 MB, free: 11.31 MB / 314.7 MB Notification: Performance of Templates: time 0.002382/0.008163, allocations: 0.7572 MB / 331 MB, free: 10.56 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8247037841938436]