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.001275/0.001275, allocations: 97.47 kB / 17 MB, free: 6.418 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.001521/0.001521, allocations: 187.9 kB / 17.89 MB, free: 5.945 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.426/1.426, allocations: 223.2 MB / 241.9 MB, free: 336 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.2358/0.2358, allocations: 44.25 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003585, allocations: 8 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1275, allocations: 61.92 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006979/0.1282, allocations: 209.2 kB / 471.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.13, allocations: 1.33 MB / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.401e-05/0.1301, allocations: 0 / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.21e-05/0.1301, allocations: 0 / 473.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.1301, allocations: 0 / 473.1 MB, free: 12.16 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.0004759/0.1306, allocations: 95.16 kB / 473.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.452e-05/0.1306, allocations: 3.938 kB / 473.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.745e-05/0.1307, allocations: 4 kB / 473.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.78e-05/0.1307, allocations: 0 / 473.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.325e-05/0.1308, allocations: 3.984 kB / 473.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.064e-06/0.1308, allocations: 4 kB / 473.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.1309, allocations: 35.97 kB / 473.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.831e-06/0.131, allocations: 0 / 473.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.784e-05/0.131, allocations: 25.7 kB / 473.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.665e-05/0.1311, allocations: 27.95 kB / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1311, allocations: 0 / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1311, allocations: 0 / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1311, allocations: 0 / 473.3 MB, free: 11.96 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.0003023/0.1314, allocations: 353 kB / 473.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1314, allocations: 12.03 kB / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.1315, allocations: 4 kB / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.1316, allocations: 163.1 kB / 473.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1316, allocations: 0 / 473.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-06/0.1316, allocations: 0 / 473.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.046e-05/0.1317, allocations: 33.66 kB / 473.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.1317, allocations: 0 / 473.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.1317, allocations: 3.984 kB / 473.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1318, allocations: 0 / 473.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.899e-05/0.1318, allocations: 3.984 kB / 473.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.1319, allocations: 153.7 kB / 474 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.736e-05/0.132, allocations: 18.52 kB / 474 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.296e-05/0.132, allocations: 4.859 kB / 474.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.132, allocations: 4.094 kB / 474.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/0.1321, allocations: 64.22 kB / 474.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.1321, allocations: 3.938 kB / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001735/0.1322, allocations: 71.39 kB / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.1323, allocations: 81.05 kB / 474.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.116e-05/0.1323, allocations: 89.86 kB / 474.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.1324, allocations: 25.7 kB / 474.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.471e-05/0.1324, allocations: 80.14 kB / 474.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.1324, allocations: 4 kB / 474.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.1324, allocations: 0 / 474.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1325, allocations: 314.8 kB / 474.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-06/0.1326, allocations: 128 / 474.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.1326, allocations: 4 kB / 474.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.881e-05/0.1326, allocations: 29.7 kB / 474.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1326, allocations: 0 / 474.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.629e-05/0.1327, allocations: 59.41 kB / 474.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.1327, allocations: 33.7 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.1327, allocations: 3.984 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1328, allocations: 3.953 kB / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-06/0.1328, allocations: 0 / 474.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.1328, allocations: 3.938 kB / 474.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.581e-05/0.1328, allocations: 4.094 kB / 474.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.1328, allocations: 4 kB / 474.9 MB, free: 10.11 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.801e-05/0.1329, allocations: 132.1 kB / 475 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-06/0.1329, allocations: 0 / 475 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.158e-05/0.1329, allocations: 11.08 kB / 475.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.133, allocations: 3.953 kB / 475.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.133, allocations: 0 / 475.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.133, allocations: 3.938 kB / 475.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.934e-05/0.1331, allocations: 149.7 kB / 475.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1331, allocations: 4 kB / 475.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1331, allocations: 0 / 475.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1331, allocations: 4 kB / 475.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.1331, allocations: 0 / 475.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1331, allocations: 0 / 475.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1331, allocations: 3.953 kB / 475.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001006/0.1332, allocations: 94.73 kB / 475.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.602e-05/0.1333, allocations: 77.11 kB / 475.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.1333, allocations: 7.969 kB / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.016e-05/0.1333, allocations: 0 / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.263e-05/0.1333, allocations: 7.938 kB / 475.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.1333, allocations: 7.938 kB / 475.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.552e-05/0.1334, allocations: 75.28 kB / 475.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1334, allocations: 0 / 475.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.1336, allocations: 12 kB / 475.5 MB, free: 9.414 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002999/0.1339, allocations: 146.4 kB / 475.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.134, allocations: 55.41 kB / 475.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.134, allocations: 0 / 475.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.015e-05/0.1341, allocations: 55.41 kB / 475.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.1342, allocations: 4 kB / 475.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001707/0.1344, allocations: 74.75 kB / 475.8 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.1347, allocations: 0.6733 MB / 476.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.884e-06/0.1347, allocations: 4 kB / 476.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.521e-05/0.1347, allocations: 11.38 kB / 476.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1347, allocations: 0 / 476.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of Templates: time 0.003219/0.1379, allocations: 0.6052 MB / 477.1 MB, free: 7.711 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