Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001374/0.001374, allocations: 82.58 kB / 20.68 MB, free: 1.035 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.001488/0.001488, allocations: 163.4 kB / 23.96 MB, free: 4.164 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.396/1.396, allocations: 177.2 MB / 204.3 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2057/0.2057, allocations: 32.81 MB / 293.5 MB, free: 48 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 440.1 MB, free: 8.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.928e-05/3.049e-05, allocations: 9.516 kB / 440.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001455/0.001485, allocations: 0.4893 MB / 440.6 MB, free: 7.707 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.004079, allocations: 1.583 MB / 442.1 MB, free: 6.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.243e-05/0.004101, allocations: 0 / 442.1 MB, free: 6.105 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.123e-05/0.004112, allocations: 0 / 442.1 MB, free: 6.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.279e-06/0.004118, allocations: 0 / 442.1 MB, free: 6.105 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0007406/0.004858, allocations: 163.1 kB / 442.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.721e-05/0.004916, allocations: 7.984 kB / 442.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.192e-05/0.004957, allocations: 0 / 442.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.899e-05/0.004986, allocations: 0 / 442.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.866e-05/0.005015, allocations: 4 kB / 442.3 MB, free: 5.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.847e-06/0.005024, allocations: 4 kB / 442.3 MB, free: 5.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.005433, allocations: 119.8 kB / 442.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.645e-06/0.005441, allocations: 0 / 442.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.821e-05/0.005459, allocations: 4 kB / 442.4 MB, free: 5.809 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.005586, allocations: 43.88 kB / 442.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.005589, allocations: 4 kB / 442.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.00559, allocations: 3.938 kB / 442.5 MB, free: 5.758 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.005594, allocations: 0 / 442.5 MB, free: 5.758 MB / 366.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.000352/0.005946, allocations: 268.1 kB / 442.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.00598, allocations: 12.03 kB / 442.8 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.00601, allocations: 4.938 kB / 442.8 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.878e-05/0.006099, allocations: 105.8 kB / 442.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.006111, allocations: 384 / 442.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.00612, allocations: 384 / 442.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.006276, allocations: 67.89 kB / 442.9 MB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.006283, allocations: 192 / 442.9 MB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.138e-06/0.006293, allocations: 4.359 kB / 442.9 MB, free: 5.234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.006298, allocations: 3.938 kB / 442.9 MB, free: 5.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.447e-05/0.006332, allocations: 29.7 kB / 443 MB, free: 5.195 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001144/0.006447, allocations: 93.33 kB / 443.1 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.501e-05/0.006512, allocations: 48.31 kB / 443.1 MB, free: 5.012 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.04e-05/0.006542, allocations: 30.56 kB / 443.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.006551, allocations: 0 / 443.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.665e-05/0.006607, allocations: 72.25 kB / 443.2 MB, free: 4.887 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.006608, allocations: 0 / 443.2 MB, free: 4.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001992/0.006807, allocations: 110.8 kB / 443.3 MB, free: 4.754 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.027e-05/0.006868, allocations: 81.05 kB / 443.4 MB, free: 4.656 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.728e-05/0.006925, allocations: 93.86 kB / 443.5 MB, free: 4.555 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.006939, allocations: 25.7 kB / 443.5 MB, free: 4.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.762e-05/0.006977, allocations: 88.25 kB / 443.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.006995, allocations: 7.953 kB / 443.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.007023, allocations: 9.719 kB / 443.6 MB, free: 4.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.007222, allocations: 314.8 kB / 443.9 MB, free: 4.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.767e-05/0.00725, allocations: 29.7 kB / 444 MB, free: 4.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.943e-05/0.00727, allocations: 25.7 kB / 444 MB, free: 4.027 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.54e-05/0.007335, allocations: 68.2 kB / 444.1 MB, free: 3.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.007337, allocations: 0 / 444.1 MB, free: 3.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.866e-05/0.007435, allocations: 93.03 kB / 444.1 MB, free: 3.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/0.007471, allocations: 32.45 kB / 444.2 MB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.007476, allocations: 7.984 kB / 444.2 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.007491, allocations: 4 kB / 444.2 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.007492, allocations: 0 / 444.2 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.007498, allocations: 3.938 kB / 444.2 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.342e-05/0.007511, allocations: 0 / 444.2 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.007517, allocations: 0 / 444.2 MB, free: 3.785 MB / 366.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.0001032/0.00762, allocations: 143.5 kB / 444.3 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.007628, allocations: 0 / 444.3 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.11e-05/0.007639, allocations: 3 kB / 444.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.00764, allocations: 0 / 444.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.007644, allocations: 4 kB / 444.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.007648, allocations: 3.938 kB / 444.3 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.941e-05/0.007727, allocations: 101.3 kB / 444.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.00773, allocations: 3.984 kB / 444.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.82e-07/0.007731, allocations: 0 / 444.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.007732, allocations: 0 / 444.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.007738, allocations: 0 / 444.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.007744, allocations: 4 kB / 444.4 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.007747, allocations: 4 kB / 444.5 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000229/0.007976, allocations: 120.5 kB / 444.6 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-06/0.00798, allocations: 4.031 kB / 444.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.007991, allocations: 0 / 444.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.876e-06/0.008, allocations: 0 / 444.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.787e-05/0.008018, allocations: 4 kB / 444.6 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.008021, allocations: 0 / 444.6 MB, free: 3.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.806e-05/0.008059, allocations: 79.22 kB / 444.7 MB, free: 3.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.008059, allocations: 0 / 444.7 MB, free: 3.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002098/0.008269, allocations: 15.94 kB / 444.7 MB, free: 3.227 MB / 366.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.000373/0.008642, allocations: 164.1 kB / 444.8 MB, free: 3.062 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.008768, allocations: 122.7 kB / 444.9 MB, free: 2.918 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.008775, allocations: 0 / 444.9 MB, free: 2.918 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.482e-05/0.008829, allocations: 85.11 kB / 445 MB, free: 2.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.008954, allocations: 0 / 445 MB, free: 2.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002139/0.009168, allocations: 106.6 kB / 445.1 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.788e-05/0.009216, allocations: 55.36 kB / 445.2 MB, free: 2.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.248e-06/0.00922, allocations: 0 / 445.2 MB, free: 2.605 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.188e-05/0.009232, allocations: 8.5 kB / 445.2 MB, free: 2.598 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.009232, allocations: 4.125 kB / 445.2 MB, free: 2.594 MB / 366.1 MB Notification: Performance of Templates: time 0.003224/0.01246, allocations: 0.6639 MB / 445.9 MB, free: 1.934 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.544226940721273]