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.001105/0.001105, allocations: 117 kB / 18.39 MB, free: 4.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 204.5 kB / 19.34 MB, free: 3.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.12 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 73.02 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1337, allocations: 62.45 MB / 481.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001744/0.1355, allocations: 493.3 kB / 481.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.1377, allocations: 1.636 MB / 483.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.985e-05/0.1377, allocations: 0 / 483.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.095e-05/0.1378, allocations: 0 / 483.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.613e-06/0.1378, allocations: 3.938 kB / 483.6 MB, free: 2.414 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.0006363/0.1384, allocations: 163.3 kB / 483.7 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.465e-05/0.1385, allocations: 7.938 kB / 483.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.73e-05/0.1385, allocations: 11.98 kB / 483.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.682e-05/0.1386, allocations: 0 / 483.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.29e-05/0.1386, allocations: 0 / 483.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.1386, allocations: 0 / 483.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003701/0.139, allocations: 119.8 kB / 483.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.012e-05/0.139, allocations: 3.938 kB / 483.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.139, allocations: 4 kB / 483.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.1392, allocations: 43.94 kB / 483.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.279e-06/0.1392, allocations: 0 / 483.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1392, allocations: 0 / 483.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1392, allocations: 0 / 483.9 MB, free: 2.07 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.000361/0.1396, allocations: 349.3 kB / 484.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1396, allocations: 8.031 kB / 484.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.148e-05/0.1396, allocations: 4.938 kB / 484.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.1397, allocations: 160.4 kB / 484.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.1398, allocations: 4.375 kB / 484.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.1398, allocations: 384 / 484.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.746e-05/0.1399, allocations: 34.02 kB / 484.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.1399, allocations: 0 / 484.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.1399, allocations: 3.984 kB / 484.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1399, allocations: 0 / 484.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.067e-05/0.1399, allocations: 7.922 kB / 484.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.1401, allocations: 157.7 kB / 484.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.083e-05/0.1401, allocations: 18.58 kB / 484.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.427e-05/0.1402, allocations: 8.797 kB / 484.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.274e-06/0.1402, allocations: 0 / 484.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.1403, allocations: 64.27 kB / 484.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.1403, allocations: 0 / 484.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001687/0.1405, allocations: 71.33 kB / 484.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.1405, allocations: 77.11 kB / 484.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.688e-05/0.1406, allocations: 93.98 kB / 485 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.1407, allocations: 25.7 kB / 485 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.42e-05/0.1407, allocations: 80.14 kB / 485.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1407, allocations: 0 / 485.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.1407, allocations: 13.72 kB / 485.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1409, allocations: 314.8 kB / 485.4 MB, free: 376 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.015e-05/0.1409, allocations: 0 / 485.4 MB, free: 376 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.763e-06/0.1409, allocations: 4 kB / 485.4 MB, free: 372 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.885e-05/0.141, allocations: 64.33 kB / 485.4 MB, free: 292 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.141, allocations: 0 / 485.4 MB, free: 292 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.401e-05/0.1411, allocations: 67.33 kB / 485.5 MB, free: 212 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.1411, allocations: 41.58 kB / 485.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1411, allocations: 0 / 485.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.1411, allocations: 0 / 485.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.1411, allocations: 0 / 485.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.1412, allocations: 0 / 485.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.461e-05/0.1412, allocations: 0 / 485.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.1412, allocations: 0 / 485.5 MB, free: 164 kB / 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 0.0001456/0.1413, allocations: 147.6 kB / 485.7 MB, free: 0 / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.26e-05/0.1414, allocations: 208 / 485.7 MB, free: 16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/0.1414, allocations: 11.05 kB / 485.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1414, allocations: 0 / 485.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1414, allocations: 4 kB / 485.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1414, allocations: 0 / 485.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.624e-05/0.1415, allocations: 141.7 kB / 485.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1415, allocations: 0 / 485.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1415, allocations: 0 / 485.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1415, allocations: 4 kB / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.1415, allocations: 7.938 kB / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1415, allocations: 0 / 485.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.1415, allocations: 7.922 kB / 485.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.814e-05/0.1416, allocations: 90.78 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.474e-05/0.1417, allocations: 81.02 kB / 486 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.1417, allocations: 7.922 kB / 486 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-06/0.1417, allocations: 0 / 486 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.157e-05/0.1417, allocations: 4.031 kB / 486 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.1417, allocations: 8 kB / 486.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.669e-05/0.1418, allocations: 75.28 kB / 486.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1418, allocations: 0 / 486.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.142, allocations: 15.94 kB / 486.1 MB, free: 15.46 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.0002743/0.1423, allocations: 144.9 kB / 486.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.128e-05/0.1424, allocations: 63.34 kB / 486.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1424, allocations: 0 / 486.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.789e-05/0.1424, allocations: 59.41 kB / 486.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.1425, allocations: 10.33 kB / 486.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001851/0.1427, allocations: 68.94 kB / 486.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.1431, allocations: 0.6729 MB / 487.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.32e-06/0.1431, allocations: 0 / 487.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-06/0.1431, allocations: 7.438 kB / 487.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1431, allocations: 4.125 kB / 487.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of Templates: time 0.002752/0.1458, allocations: 0.6523 MB / 487.8 MB, free: 13.7 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 -s cvode -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