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.001313/0.001313, allocations: 110.3 kB / 17.98 MB, free: 5.402 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.001398/0.001398, allocations: 193.3 kB / 18.9 MB, free: 4.48 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.308/1.308, allocations: 222.9 MB / 242.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2019/0.2019, allocations: 44.17 MB / 336.9 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 64.94 kB / 408.5 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1237, allocations: 60.82 MB / 469.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001817/0.1256, allocations: 0.5449 MB / 469.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1276, allocations: 1.379 MB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.075e-05/0.1276, allocations: 4 kB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.646e-05/0.1276, allocations: 0 / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.463e-06/0.1276, allocations: 0 / 471.3 MB, free: 12.81 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.0006654/0.1283, allocations: 94.55 kB / 471.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.31e-05/0.1284, allocations: 3.984 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.092e-05/0.1284, allocations: 4 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.993e-05/0.1285, allocations: 0 / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.63e-05/0.1285, allocations: 0 / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.1285, allocations: 0 / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.1287, allocations: 43.91 kB / 471.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.365e-06/0.1288, allocations: 0 / 471.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.1288, allocations: 3.984 kB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.1289, allocations: 27.97 kB / 471.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1289, allocations: 0 / 471.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1289, allocations: 0 / 471.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1289, allocations: 0 / 471.5 MB, free: 12.64 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.0003556/0.1293, allocations: 345.3 kB / 471.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.1293, allocations: 11.97 kB / 471.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.564e-05/0.1294, allocations: 4.938 kB / 471.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.1295, allocations: 164.4 kB / 472 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.1295, allocations: 4.375 kB / 472 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.1295, allocations: 4.375 kB / 472 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.884e-05/0.1296, allocations: 30.02 kB / 472 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.1296, allocations: 3.938 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.1297, allocations: 4 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1297, allocations: 0 / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.254e-05/0.1297, allocations: 3.984 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.1298, allocations: 145.7 kB / 472.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.292e-05/0.1299, allocations: 30.55 kB / 472.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.444e-05/0.1299, allocations: 8.859 kB / 472.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.1299, allocations: 0 / 472.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/0.13, allocations: 64.27 kB / 472.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.13, allocations: 3.938 kB / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001802/0.1302, allocations: 63.39 kB / 472.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.1302, allocations: 81.05 kB / 472.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.376e-05/0.1303, allocations: 93.86 kB / 472.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.1303, allocations: 29.83 kB / 472.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.487e-05/0.1303, allocations: 80.14 kB / 472.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.1303, allocations: 0 / 472.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.38e-05/0.1304, allocations: 13.72 kB / 472.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1305, allocations: 310.8 kB / 472.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.1305, allocations: 0 / 472.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-06/0.1305, allocations: 3.984 kB / 472.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.402e-05/0.1306, allocations: 64.33 kB / 473 MB, free: 10.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1306, allocations: 4 kB / 473 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.001e-05/0.1307, allocations: 59.41 kB / 473.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.1307, allocations: 33.64 kB / 473.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1308, allocations: 11.94 kB / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1308, allocations: 3.984 kB / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1308, allocations: 0 / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1308, allocations: 0 / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.753e-05/0.1308, allocations: 0 / 473.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.1308, allocations: 0 / 473.1 MB, free: 10.72 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 9.497e-05/0.1309, allocations: 139.6 kB / 473.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.1309, allocations: 3.938 kB / 473.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.53e-05/0.131, allocations: 7.078 kB / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.131, allocations: 0 / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.131, allocations: 0 / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.131, allocations: 4 kB / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.1311, allocations: 149.7 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1311, allocations: 0 / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.1311, allocations: 0 / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1311, allocations: 3.938 kB / 473.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1311, allocations: 4 kB / 473.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.1311, allocations: 4 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1311, allocations: 3.938 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/0.1313, allocations: 94.67 kB / 473.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-05/0.1313, allocations: 81.11 kB / 473.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.1313, allocations: 7.875 kB / 473.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.1314, allocations: 0 / 473.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.366e-05/0.1314, allocations: 4.031 kB / 473.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.1314, allocations: 0 / 473.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.803e-05/0.1314, allocations: 75.28 kB / 473.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1314, allocations: 4 kB / 473.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.1317, allocations: 15.98 kB / 473.7 MB, free: 10.02 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.0003744/0.132, allocations: 144.6 kB / 473.8 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001132/0.1322, allocations: 59.41 kB / 473.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1322, allocations: 0 / 473.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.376e-05/0.1322, allocations: 55.41 kB / 474 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.1324, allocations: 0 / 474 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002182/0.1326, allocations: 114.6 kB / 474.1 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.1328, allocations: 0.669 MB / 474.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.148e-05/0.1329, allocations: 11.44 kB / 474.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1329, allocations: 0 / 474.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of Templates: time 0.002214/0.1351, allocations: 0.644 MB / 475.4 MB, free: 8.246 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/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_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches