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.00155/0.00155, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001901/0.001901, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2061/0.2061, allocations: 46.13 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 77.55 kB / 417.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1263, allocations: 62.46 MB / 480.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001449/0.1278, allocations: 483.7 kB / 480.5 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.1297, allocations: 1.644 MB / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.944e-05/0.1297, allocations: 0 / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.1298, allocations: 0 / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.707e-06/0.1298, allocations: 3.938 kB / 482.2 MB, free: 3.105 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.000597/0.1304, allocations: 167.4 kB / 482.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.892e-05/0.1304, allocations: 8 kB / 482.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.761e-05/0.1305, allocations: 0 / 482.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.38e-05/0.1305, allocations: 0 / 482.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.307e-05/0.1305, allocations: 3.984 kB / 482.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.255e-06/0.1305, allocations: 0 / 482.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002715/0.1308, allocations: 119.8 kB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.1308, allocations: 3.984 kB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.164e-05/0.1309, allocations: 0 / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.1311, allocations: 91.89 kB / 482.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1311, allocations: 0 / 482.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1311, allocations: 4 kB / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1311, allocations: 0 / 482.6 MB, free: 2.715 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.0003124/0.1314, allocations: 369.5 kB / 482.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1315, allocations: 12.03 kB / 483 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.1315, allocations: 4.922 kB / 483 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.835e-05/0.1316, allocations: 164.3 kB / 483.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.1316, allocations: 384 / 483.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-06/0.1316, allocations: 384 / 483.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.919e-05/0.1317, allocations: 38.02 kB / 483.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-06/0.1317, allocations: 4 kB / 483.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.1317, allocations: 0 / 483.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1317, allocations: 3.984 kB / 483.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.913e-05/0.1318, allocations: 7.938 kB / 483.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.1319, allocations: 145.7 kB / 483.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.274e-05/0.1319, allocations: 18.58 kB / 483.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.518e-05/0.1319, allocations: 8.953 kB / 483.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.79e-06/0.1319, allocations: 4 kB / 483.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.132, allocations: 64.2 kB / 483.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.132, allocations: 0 / 483.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001479/0.1321, allocations: 67.33 kB / 483.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.1322, allocations: 77.11 kB / 483.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.447e-05/0.1322, allocations: 89.86 kB / 483.6 MB, free: 1.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.909e-06/0.1323, allocations: 25.7 kB / 483.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.968e-05/0.1323, allocations: 84.14 kB / 483.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.1323, allocations: 4.125 kB / 483.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.1323, allocations: 17.66 kB / 483.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.1324, allocations: 310.8 kB / 484.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.438e-06/0.1325, allocations: 4 kB / 484.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.643e-06/0.1325, allocations: 7.922 kB / 484.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.1326, allocations: 60.27 kB / 484.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1326, allocations: 0 / 484.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.696e-05/0.1327, allocations: 71.41 kB / 484.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.1327, allocations: 36.14 kB / 484.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.1327, allocations: 0 / 484.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1327, allocations: 3.984 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1327, allocations: 0 / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.1327, allocations: 0 / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.654e-05/0.1328, allocations: 4 kB / 484.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.1328, allocations: 0 / 484.3 MB, free: 0.7734 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 7.677e-05/0.1329, allocations: 131.5 kB / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.1329, allocations: 11.97 kB / 484.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.624e-06/0.1329, allocations: 3.125 kB / 484.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1329, allocations: 0 / 484.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1329, allocations: 0 / 484.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.1329, allocations: 0 / 484.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.853e-05/0.133, allocations: 149.7 kB / 484.5 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.133, allocations: 0 / 484.5 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.133, allocations: 4 kB / 484.5 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.133, allocations: 3.938 kB / 484.6 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.133, allocations: 4 kB / 484.6 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.133, allocations: 0 / 484.6 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.133, allocations: 4 kB / 484.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.491e-05/0.1331, allocations: 94.77 kB / 484.7 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.1332, allocations: 81.02 kB / 484.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.1332, allocations: 3.938 kB / 484.7 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-06/0.1332, allocations: 0 / 484.7 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.052e-05/0.1332, allocations: 4 kB / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.1332, allocations: 0 / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.388e-05/0.1333, allocations: 83.3 kB / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1333, allocations: 0 / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.1335, allocations: 39.94 kB / 484.9 MB, free: 64 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.008217/0.1417, allocations: 181 kB / 485 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.142, allocations: 63.33 kB / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.142, allocations: 0 / 485.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.217e-05/0.142, allocations: 59.47 kB / 485.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.1423, allocations: 4 kB / 485.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002448/0.1425, allocations: 72.94 kB / 485.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.1428, allocations: 0.6768 MB / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.021e-06/0.1428, allocations: 0 / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.23e-05/0.1428, allocations: 7.438 kB / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1428, allocations: 0 / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Templates: time 0.003941/0.1467, allocations: 1.265 MB / 487.2 MB, free: 13.66 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/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_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches