Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.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.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 106.5 kB / 16.41 MB, free: 6.504 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.001538/0.001538, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.743/1.743, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2613/0.2613, allocations: 43.53 MB / 314.1 MB, free: 444 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.00144/0.00144, allocations: 69.59 kB / 441.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1646, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001795/0.1665, allocations: 490.8 kB / 0.4883 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003643/0.1702, allocations: 2.326 MB / 0.4906 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.548e-05/0.1702, allocations: 0 / 0.4906 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.67e-05/0.1702, allocations: 4 kB / 0.4906 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.184e-06/0.1702, allocations: 0 / 0.4906 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002666/0.1729, allocations: 1.121 MB / 0.4917 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.734e-05/0.173, allocations: 3.938 kB / 0.4917 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.377e-05/0.173, allocations: 3.984 kB / 0.4917 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.766e-05/0.1731, allocations: 4 kB / 0.4917 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.288e-05/0.1731, allocations: 0 / 0.4917 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.1731, allocations: 0 / 0.4917 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001531/0.1746, allocations: 0.9912 MB / 0.4927 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.329e-05/0.1747, allocations: 0 / 0.4927 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.493e-05/0.1747, allocations: 3.984 kB / 0.4927 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005775/0.1753, allocations: 415.3 kB / 0.4931 GB, free: 6.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.775e-05/0.1753, allocations: 3.984 kB / 0.4931 GB, free: 6.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1753, allocations: 0 / 0.4931 GB, free: 6.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1753, allocations: 0 / 0.4931 GB, free: 6.438 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.0005211/0.1758, allocations: 433.2 kB / 0.4935 GB, free: 5.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1759, allocations: 11.89 kB / 0.4935 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.1759, allocations: 8.938 kB / 0.4935 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.1761, allocations: 164.4 kB / 0.4937 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.1761, allocations: 384 / 0.4937 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.1761, allocations: 384 / 0.4937 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.1762, allocations: 34.02 kB / 0.4937 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1763, allocations: 3.938 kB / 0.4937 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.1763, allocations: 0 / 0.4937 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1763, allocations: 0 / 0.4937 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.287e-05/0.1763, allocations: 0 / 0.4937 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/0.1765, allocations: 161.6 kB / 0.4938 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.015e-05/0.1766, allocations: 18.58 kB / 0.4939 GB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.509e-05/0.1766, allocations: 4.859 kB / 0.4939 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.1766, allocations: 96 / 0.4939 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/0.1767, allocations: 64.2 kB / 0.4939 GB, free: 5.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1767, allocations: 0 / 0.4939 GB, free: 5.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001974/0.1769, allocations: 67.33 kB / 0.494 GB, free: 5.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.177, allocations: 89.17 kB / 0.4941 GB, free: 5.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.011e-05/0.177, allocations: 89.86 kB / 0.4942 GB, free: 5.098 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.177, allocations: 25.7 kB / 0.4942 GB, free: 5.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.1771, allocations: 80.14 kB / 0.4943 GB, free: 4.984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.1771, allocations: 3.984 kB / 0.4943 GB, free: 4.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.1771, allocations: 13.72 kB / 0.4943 GB, free: 4.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1773, allocations: 310.8 kB / 0.4946 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.033e-05/0.1773, allocations: 3.938 kB / 0.4946 GB, free: 4.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.133e-06/0.1773, allocations: 8 kB / 0.4946 GB, free: 4.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.498e-05/0.1774, allocations: 68.19 kB / 0.4947 GB, free: 4.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1774, allocations: 4 kB / 0.4947 GB, free: 4.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.598e-05/0.1775, allocations: 55.41 kB / 0.4947 GB, free: 4.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.1775, allocations: 37.64 kB / 0.4947 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1775, allocations: 0 / 0.4947 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.1775, allocations: 0 / 0.4947 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.194e-06/0.1775, allocations: 3.984 kB / 0.4948 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.1776, allocations: 96 / 0.4948 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.552e-05/0.1776, allocations: 4 kB / 0.4948 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.1776, allocations: 4 kB / 0.4948 GB, free: 4.43 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.0001244/0.1777, allocations: 139.5 kB / 0.4949 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.1777, allocations: 3.938 kB / 0.4949 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.337e-05/0.1778, allocations: 3.125 kB / 0.4949 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1778, allocations: 4 kB / 0.4949 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1778, allocations: 0 / 0.4949 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.1778, allocations: 0 / 0.4949 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.1779, allocations: 153.7 kB / 0.4951 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1779, allocations: 0 / 0.4951 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.1779, allocations: 0 / 0.4951 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.1779, allocations: 3.938 kB / 0.4951 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.178, allocations: 4 kB / 0.4951 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.178, allocations: 3.938 kB / 0.4951 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.178, allocations: 0 / 0.4951 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.1781, allocations: 90.83 kB / 0.4951 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.842e-05/0.1781, allocations: 81.14 kB / 0.4952 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.1782, allocations: 3.938 kB / 0.4952 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.408e-06/0.1782, allocations: 0 / 0.4952 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.151e-05/0.1782, allocations: 3.938 kB / 0.4952 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.1782, allocations: 4 kB / 0.4952 GB, free: 3.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.36e-05/0.1782, allocations: 75.28 kB / 0.4953 GB, free: 3.754 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1782, allocations: 0 / 0.4953 GB, free: 3.754 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000425/0.1787, allocations: 144 kB / 0.4954 GB, free: 3.613 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.000743/0.1794, allocations: 365.3 kB / 0.4958 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.1796, allocations: 63.33 kB / 0.4959 GB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1796, allocations: 64 / 0.4959 GB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.031e-05/0.1796, allocations: 59.41 kB / 0.4959 GB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.1798, allocations: 4 kB / 0.4959 GB, free: 3.102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001986/0.18, allocations: 88.91 kB / 0.496 GB, free: 2.988 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.1803, allocations: 0.669 MB / 0.4967 GB, free: 2.293 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.254e-06/0.1803, allocations: 4 kB / 0.4967 GB, free: 2.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.158e-05/0.1803, allocations: 7.438 kB / 0.4967 GB, free: 2.281 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1803, allocations: 0 / 0.4967 GB, free: 2.281 MB / 382.1 MB Notification: Performance of Templates: time 0.008618/0.1889, allocations: 4.295 MB / 0.5009 GB, free: 13.98 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches