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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008531/0.0008532, allocations: 94.94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008484/0.0008484, allocations: 168 kB / 18.25 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2054/0.2054, allocations: 44.25 MB / 337.7 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003494, allocations: 9 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1378, allocations: 61.92 MB / 472.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006609/0.1385, allocations: 213.2 kB / 472.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.1404, allocations: 1.368 MB / 473.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.002e-05/0.1404, allocations: 0 / 473.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.28e-05/0.1405, allocations: 0 / 473.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.997e-06/0.1405, allocations: 0 / 473.8 MB, free: 11.79 MB / 350.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.000432/0.1409, allocations: 94.53 kB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.102e-05/0.1409, allocations: 0 / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.304e-05/0.141, allocations: 4 kB / 473.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.141, allocations: 3.984 kB / 473.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.142e-05/0.141, allocations: 4 kB / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.1411, allocations: 0 / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.1412, allocations: 39.97 kB / 474 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.979e-06/0.1412, allocations: 3.938 kB / 474 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.505e-05/0.1413, allocations: 25.7 kB / 474 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.1414, allocations: 43.92 kB / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.1414, allocations: 0 / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1414, allocations: 0 / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1414, allocations: 4 kB / 474 MB, free: 11.56 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.0003036/0.1417, allocations: 341.3 kB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.1418, allocations: 8.031 kB / 474.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.1418, allocations: 0.9375 kB / 474.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.1419, allocations: 168.4 kB / 474.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.1419, allocations: 384 / 474.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.33e-05/0.142, allocations: 384 / 474.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.637e-05/0.1421, allocations: 37.95 kB / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1421, allocations: 0 / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.1421, allocations: 0 / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.1421, allocations: 0 / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.794e-05/0.1421, allocations: 4 kB / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.1423, allocations: 149.7 kB / 474.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.093e-05/0.1423, allocations: 22.59 kB / 474.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.447e-05/0.1423, allocations: 8.797 kB / 474.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-06/0.1424, allocations: 0 / 474.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.681e-05/0.1424, allocations: 68.2 kB / 474.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1424, allocations: 0 / 474.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001835/0.1426, allocations: 71.39 kB / 474.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.1427, allocations: 77.11 kB / 475 MB, free: 10.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.789e-05/0.1427, allocations: 89.86 kB / 475.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.1428, allocations: 29.64 kB / 475.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.551e-05/0.1428, allocations: 80.14 kB / 475.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.1428, allocations: 0 / 475.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.115e-05/0.1428, allocations: 9.719 kB / 475.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.143, allocations: 314.8 kB / 475.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.101e-05/0.143, allocations: 4.125 kB / 475.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.143, allocations: 3.938 kB / 475.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.859e-05/0.1431, allocations: 64.27 kB / 475.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1431, allocations: 0 / 475.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.493e-05/0.1432, allocations: 63.39 kB / 475.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.1432, allocations: 33.64 kB / 475.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1432, allocations: 4 kB / 475.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1432, allocations: 0 / 475.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1432, allocations: 4.094 kB / 475.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1433, allocations: 4 kB / 475.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.527e-05/0.1433, allocations: 0 / 475.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.1433, allocations: 0 / 475.7 MB, free: 9.664 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 0.0001095/0.1434, allocations: 143.5 kB / 475.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-06/0.1434, allocations: 7.875 kB / 475.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.267e-05/0.1434, allocations: 7.078 kB / 475.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.1434, allocations: 0 / 475.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1434, allocations: 0 / 475.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1435, allocations: 7.984 kB / 475.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.1436, allocations: 149.7 kB / 476 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1436, allocations: 0 / 476 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1436, allocations: 0 / 476 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1436, allocations: 3.938 kB / 476 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.1436, allocations: 0 / 476 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1436, allocations: 3.984 kB / 476 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1436, allocations: 0 / 476 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001182/0.1437, allocations: 98.73 kB / 476.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.1438, allocations: 81.05 kB / 476.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.1438, allocations: 3.938 kB / 476.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.305e-06/0.1438, allocations: 4 kB / 476.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/0.1439, allocations: 0 / 476.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.1439, allocations: 0 / 476.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.686e-05/0.1439, allocations: 75.28 kB / 476.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1439, allocations: 3.938 kB / 476.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.1441, allocations: 16 kB / 476.3 MB, free: 8.961 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.000387/0.1445, allocations: 148.2 kB / 476.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001019/0.1446, allocations: 63.39 kB / 476.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1446, allocations: 0 / 476.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.541e-05/0.1447, allocations: 55.41 kB / 476.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.1448, allocations: 4 kB / 476.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002178/0.1451, allocations: 74.89 kB / 476.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.1454, allocations: 0.6731 MB / 477.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.705e-06/0.1454, allocations: 0 / 477.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/0.1454, allocations: 7.438 kB / 477.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1454, allocations: 0 / 477.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of Templates: time 0.002948/0.1484, allocations: 0.6916 MB / 478 MB, free: 7.172 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile (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) 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) Reference file matches