Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 110.1 kB / 16.41 MB, free: 6.488 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.001718/0.001718, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2431/0.2431, allocations: 43.53 MB / 314.1 MB, free: 432 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 69.98 kB / 441.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1487, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002119/0.1509, allocations: 0.491 MB / 0.4883 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.1533, allocations: 1.427 MB / 0.4897 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.991e-05/0.1534, allocations: 0 / 0.4897 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.555e-05/0.1534, allocations: 0 / 0.4897 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.464e-06/0.1534, allocations: 0 / 0.4897 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000751/0.1542, allocations: 111.6 kB / 0.4898 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.053e-05/0.1543, allocations: 0 / 0.4898 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.672e-05/0.1543, allocations: 4 kB / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.743e-05/0.1544, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.512e-05/0.1544, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.917e-06/0.1544, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003575/0.1548, allocations: 71.92 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.668e-06/0.1548, allocations: 0 / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.538e-05/0.1548, allocations: 4 kB / 0.4899 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.1549, allocations: 23.91 kB / 0.4899 GB, free: 9.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.155, allocations: 0 / 0.4899 GB, free: 9.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.155, allocations: 0 / 0.4899 GB, free: 9.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.155, allocations: 0 / 0.4899 GB, free: 9.656 MB / 382.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.0004213/0.1554, allocations: 353.3 kB / 0.4903 GB, free: 9.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1555, allocations: 11.89 kB / 0.4903 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.1555, allocations: 0.9375 kB / 0.4903 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.1556, allocations: 164.3 kB / 0.4905 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.1557, allocations: 4.312 kB / 0.4905 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.1557, allocations: 4.375 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.1558, allocations: 34 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1558, allocations: 0 / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1558, allocations: 0 / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1559, allocations: 8 kB / 0.4905 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.278e-05/0.1559, allocations: 0 / 0.4905 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002035/0.1561, allocations: 149.6 kB / 0.4906 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.503e-05/0.1562, allocations: 22.55 kB / 0.4907 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.1562, allocations: 4.859 kB / 0.4907 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.1562, allocations: 7.969 kB / 0.4907 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.1564, allocations: 64.2 kB / 0.4907 GB, free: 8.672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.693e-06/0.1564, allocations: 0 / 0.4907 GB, free: 8.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002509/0.1567, allocations: 63.47 kB / 0.4908 GB, free: 8.598 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.1567, allocations: 81.11 kB / 0.4909 GB, free: 8.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.1568, allocations: 89.86 kB / 0.491 GB, free: 8.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.1569, allocations: 29.69 kB / 0.491 GB, free: 8.367 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.158e-05/0.1569, allocations: 80.14 kB / 0.4911 GB, free: 8.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.1569, allocations: 0 / 0.4911 GB, free: 8.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.157, allocations: 13.72 kB / 0.4911 GB, free: 8.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.1572, allocations: 319 kB / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.223e-05/0.1572, allocations: 3.938 kB / 0.4914 GB, free: 7.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.1572, allocations: 0 / 0.4914 GB, free: 7.941 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.051e-05/0.1572, allocations: 60.27 kB / 0.4914 GB, free: 7.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.1573, allocations: 0 / 0.4914 GB, free: 7.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.939e-05/0.1574, allocations: 67.33 kB / 0.4915 GB, free: 7.789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.829e-05/0.1574, allocations: 33.64 kB / 0.4915 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1575, allocations: 96 / 0.4915 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.1575, allocations: 8 kB / 0.4916 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1575, allocations: 0 / 0.4916 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.1575, allocations: 0 / 0.4916 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.353e-05/0.1575, allocations: 7.938 kB / 0.4916 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1575, allocations: 0 / 0.4916 GB, free: 7.734 MB / 382.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.0001066/0.1577, allocations: 147.4 kB / 0.4917 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.1577, allocations: 3.938 kB / 0.4917 GB, free: 7.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.358e-05/0.1577, allocations: 3.125 kB / 0.4917 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1577, allocations: 0 / 0.4917 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.1577, allocations: 8 kB / 0.4917 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1577, allocations: 0 / 0.4917 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.1578, allocations: 149.7 kB / 0.4919 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1578, allocations: 0 / 0.4919 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-06/0.1579, allocations: 7.922 kB / 0.4919 GB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1579, allocations: 3.938 kB / 0.4919 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.1579, allocations: 0 / 0.4919 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1579, allocations: 0 / 0.4919 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1579, allocations: 0 / 0.4919 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/0.158, allocations: 94.83 kB / 0.492 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.1581, allocations: 77.11 kB / 0.492 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.1581, allocations: 7.938 kB / 0.492 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.098e-05/0.1581, allocations: 0 / 0.492 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.1581, allocations: 0 / 0.492 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.1581, allocations: 7.938 kB / 0.492 GB, free: 7.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.025e-05/0.1582, allocations: 75.28 kB / 0.4921 GB, free: 7.047 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1582, allocations: 0 / 0.4921 GB, free: 7.047 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.1584, allocations: 12.03 kB / 0.4921 GB, free: 7.035 MB / 382.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.0003068/0.1587, allocations: 125.5 kB / 0.4923 GB, free: 6.906 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.1589, allocations: 59.41 kB / 0.4923 GB, free: 6.836 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1589, allocations: 0 / 0.4923 GB, free: 6.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.528e-05/0.1589, allocations: 59.41 kB / 0.4924 GB, free: 6.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.1591, allocations: 3.938 kB / 0.4924 GB, free: 6.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002351/0.1593, allocations: 93.03 kB / 0.4925 GB, free: 6.645 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.1596, allocations: 0.669 MB / 0.4931 GB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.853e-06/0.1596, allocations: 4 kB / 0.4931 GB, free: 5.945 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.379e-05/0.1597, allocations: 7.438 kB / 0.4931 GB, free: 5.938 MB / 382.1 MB Notification: Performance of SimCode: time 2.404e-06/0.1597, allocations: 0 / 0.4931 GB, free: 5.938 MB / 382.1 MB Notification: Performance of Templates: time 0.003113/0.1628, allocations: 0.5317 MB / 0.4936 GB, free: 5.406 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches