Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00182/0.00182, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002122/0.002122, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2465/0.2465, allocations: 46.1 MB / 343.7 MB, free: 11.79 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 90.09 kB / 416.9 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1256, allocations: 62.46 MB / 479.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001883/0.1276, allocations: 0.5371 MB / 479.9 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.13, allocations: 1.648 MB / 481.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.002e-05/0.13, allocations: 0 / 481.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.28e-05/0.13, allocations: 0 / 481.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.628e-06/0.1301, allocations: 0 / 481.6 MB, free: 3.496 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0005928/0.1307, allocations: 146.9 kB / 481.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.662e-05/0.1307, allocations: 0 / 481.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.329e-05/0.1307, allocations: 0 / 481.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.352e-05/0.1307, allocations: 0 / 481.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.084e-05/0.1308, allocations: 4 kB / 481.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.1308, allocations: 0 / 481.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002807/0.1311, allocations: 107.9 kB / 481.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.782e-06/0.1311, allocations: 3.938 kB / 481.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.829e-05/0.1311, allocations: 4 kB / 481.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.1313, allocations: 99.89 kB / 481.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1313, allocations: 3.984 kB / 481.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.1313, allocations: 0 / 481.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.1313, allocations: 3.938 kB / 481.9 MB, free: 3.133 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.0003241/0.1317, allocations: 361.5 kB / 482.3 MB, free: 2.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1317, allocations: 12.88 kB / 482.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.1317, allocations: 0.9375 kB / 482.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.1318, allocations: 168.3 kB / 482.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.1319, allocations: 384 / 482.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.1319, allocations: 4.375 kB / 482.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.596e-05/0.132, allocations: 37.95 kB / 482.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.132, allocations: 0 / 482.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-06/0.132, allocations: 0 / 482.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.132, allocations: 0 / 482.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.754e-05/0.132, allocations: 3.984 kB / 482.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.1322, allocations: 145.7 kB / 482.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.591e-05/0.1322, allocations: 14.58 kB / 482.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.813e-05/0.1322, allocations: 16.95 kB / 482.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.647e-06/0.1322, allocations: 0 / 482.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/0.1323, allocations: 64.14 kB / 482.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1323, allocations: 0 / 482.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.1325, allocations: 67.38 kB / 482.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.1325, allocations: 77.11 kB / 482.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.84e-05/0.1326, allocations: 89.86 kB / 483 MB, free: 1.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.1326, allocations: 33.83 kB / 483 MB, free: 1.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.14e-05/0.1326, allocations: 80.14 kB / 483.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.1327, allocations: 4 kB / 483.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.1327, allocations: 9.719 kB / 483.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1328, allocations: 318.8 kB / 483.4 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.158e-05/0.1329, allocations: 4 kB / 483.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-06/0.1329, allocations: 3.938 kB / 483.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.159e-05/0.1329, allocations: 64.33 kB / 483.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1329, allocations: 0 / 483.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.191e-05/0.133, allocations: 63.39 kB / 483.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.1331, allocations: 37.64 kB / 483.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1331, allocations: 0 / 483.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.1331, allocations: 0 / 483.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1331, allocations: 0 / 483.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1331, allocations: 0 / 483.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.229e-05/0.1331, allocations: 0 / 483.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.1331, allocations: 4 kB / 483.6 MB, free: 1.211 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.428e-05/0.1332, allocations: 135.6 kB / 483.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.779e-06/0.1332, allocations: 3.938 kB / 483.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.273e-05/0.1332, allocations: 15.09 kB / 483.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1333, allocations: 0 / 483.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1333, allocations: 7.875 kB / 483.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-06/0.1333, allocations: 0 / 483.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.1334, allocations: 145.7 kB / 483.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1334, allocations: 0 / 483.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1334, allocations: 0 / 483.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.1334, allocations: 7.938 kB / 483.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1334, allocations: 8 kB / 483.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.1334, allocations: 0 / 483.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1334, allocations: 3.984 kB / 483.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.979e-05/0.1335, allocations: 86.84 kB / 484 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.1336, allocations: 81.02 kB / 484.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1336, allocations: 7.922 kB / 484.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-06/0.1336, allocations: 0 / 484.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.1336, allocations: 8.031 kB / 484.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.1336, allocations: 0 / 484.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.092e-05/0.1337, allocations: 75.28 kB / 484.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1337, allocations: 0 / 484.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000268/0.134, allocations: 40 kB / 484.2 MB, free: 0.4922 MB / 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.0004469/0.1344, allocations: 178 kB / 484.4 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.1345, allocations: 59.41 kB / 484.4 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1346, allocations: 0 / 484.4 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.938e-05/0.1346, allocations: 59.41 kB / 484.5 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1347, allocations: 3.938 kB / 484.5 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.135, allocations: 82.69 kB / 484.6 MB, free: 60 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.1354, allocations: 0.6692 MB / 485.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.103e-06/0.1354, allocations: 3.938 kB / 485.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.155e-05/0.1354, allocations: 11.44 kB / 485.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1354, allocations: 4.125 kB / 485.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of Templates: time 0.00451/0.1399, allocations: 1.256 MB / 486.5 MB, free: 14.09 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches