Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001556/0.001556, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001645/0.001645, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2346/0.2346, allocations: 46.1 MB / 344.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 82.62 kB / 418.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1323, allocations: 62.44 MB / 480.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001869/0.1342, allocations: 489.8 kB / 481.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.1365, allocations: 1.644 MB / 482.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.57e-05/0.1365, allocations: 4 kB / 482.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.502e-05/0.1365, allocations: 0 / 482.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.939e-06/0.1366, allocations: 0 / 482.8 MB, free: 3.133 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.000642/0.1372, allocations: 155.4 kB / 483 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.788e-05/0.1373, allocations: 8 kB / 483 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.726e-05/0.1373, allocations: 7.984 kB / 483 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.956e-05/0.1374, allocations: 0 / 483 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.875e-05/0.1374, allocations: 0 / 483 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.817e-06/0.1374, allocations: 3.938 kB / 483 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002902/0.1377, allocations: 119.9 kB / 483.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.1377, allocations: 3.984 kB / 483.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.1377, allocations: 4 kB / 483.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.1379, allocations: 87.89 kB / 483.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1379, allocations: 0 / 483.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.138, allocations: 0 / 483.2 MB, free: 2.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.138, allocations: 4 kB / 483.2 MB, free: 2.746 MB / 350.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.000335/0.1383, allocations: 373.5 kB / 483.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1383, allocations: 8.031 kB / 483.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.1384, allocations: 0.9375 kB / 483.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.12e-05/0.1385, allocations: 164.3 kB / 483.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1385, allocations: 384 / 483.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.1385, allocations: 4.375 kB / 483.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.379e-05/0.1386, allocations: 38 kB / 483.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1386, allocations: 0 / 483.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.1386, allocations: 4 kB / 483.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1386, allocations: 0 / 483.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.048e-05/0.1387, allocations: 7.938 kB / 483.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001363/0.1388, allocations: 141.7 kB / 483.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.098e-05/0.1388, allocations: 22.61 kB / 484 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.494e-05/0.1389, allocations: 8.797 kB / 484 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.1389, allocations: 3.984 kB / 484 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.392e-05/0.1389, allocations: 72.19 kB / 484 MB, free: 1.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.139, allocations: 0 / 484 MB, free: 1.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002015/0.1392, allocations: 63.41 kB / 484.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.1392, allocations: 77.11 kB / 484.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.753e-05/0.1393, allocations: 93.86 kB / 484.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.1393, allocations: 25.7 kB / 484.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.264e-05/0.1394, allocations: 80.14 kB / 484.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.1394, allocations: 3.938 kB / 484.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.1394, allocations: 21.83 kB / 484.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1396, allocations: 314.8 kB / 484.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.1396, allocations: 0 / 484.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.129e-06/0.1396, allocations: 0 / 484.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.86e-05/0.1397, allocations: 60.27 kB / 484.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1397, allocations: 0 / 484.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.808e-05/0.1397, allocations: 71.33 kB / 484.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/0.1398, allocations: 33.73 kB / 484.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.1398, allocations: 4 kB / 484.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.1398, allocations: 0 / 484.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1398, allocations: 0 / 484.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.1398, allocations: 4 kB / 484.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.1398, allocations: 0 / 484.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-06/0.1399, allocations: 0 / 484.9 MB, free: 0.8086 MB / 350.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.087e-05/0.1399, allocations: 135.5 kB / 485 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-06/0.14, allocations: 3.938 kB / 485 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.224e-05/0.14, allocations: 11.11 kB / 485 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.01e-07/0.14, allocations: 0 / 485 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.14, allocations: 0 / 485 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.14, allocations: 0 / 485 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.219e-05/0.1401, allocations: 153.7 kB / 485.2 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1401, allocations: 4 kB / 485.2 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1401, allocations: 0 / 485.2 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1401, allocations: 3.938 kB / 485.2 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1401, allocations: 3.984 kB / 485.2 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1401, allocations: 0 / 485.2 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1401, allocations: 0 / 485.2 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.416e-05/0.1402, allocations: 94.78 kB / 485.3 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.1403, allocations: 85 kB / 485.4 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.1403, allocations: 3.938 kB / 485.4 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.995e-06/0.1403, allocations: 4 kB / 485.4 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.1403, allocations: 0 / 485.4 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.1403, allocations: 3.938 kB / 485.4 MB, free: 212 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.789e-05/0.1404, allocations: 75.28 kB / 485.4 MB, free: 136 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.1404, allocations: 4.031 kB / 485.4 MB, free: 132 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002552/0.1406, allocations: 43.92 kB / 485.5 MB, free: 88 kB / 350.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.0003517/0.141, allocations: 179.9 kB / 485.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.441e-05/0.1411, allocations: 55.41 kB / 485.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1411, allocations: 0 / 485.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.248e-05/0.1411, allocations: 59.34 kB / 485.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.1413, allocations: 8.125 kB / 485.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001941/0.1415, allocations: 102.6 kB / 485.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.1417, allocations: 0.6729 MB / 486.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.008e-05/0.1417, allocations: 7.438 kB / 486.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1417, allocations: 0 / 486.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Templates: time 0.00253/0.1443, allocations: 1.135 MB / 487.7 MB, free: 13.79 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches