Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001448/0.001448, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001719/0.001719, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2391/0.2391, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001657, allocations: 73.45 kB / 417.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1617, allocations: 62.45 MB / 480 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002453/0.1642, allocations: 459.8 kB / 480.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004243/0.1685, allocations: 2.411 MB / 482.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.229e-05/0.1686, allocations: 0 / 482.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.91e-05/0.1687, allocations: 3.938 kB / 482.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.616e-06/0.1687, allocations: 3.938 kB / 482.9 MB, free: 2.395 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.003579/0.1723, allocations: 1.147 MB / 484 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.605e-05/0.1723, allocations: 8 kB / 484 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.818e-05/0.1724, allocations: 3.938 kB / 484 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.072e-05/0.1724, allocations: 0 / 484 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.51e-05/0.1725, allocations: 7.984 kB / 484 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.1725, allocations: 0 / 484 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00218/0.1747, allocations: 1.011 MB / 485.1 MB, free: 224 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.391e-05/0.1747, allocations: 3.984 kB / 485.1 MB, free: 220 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.785e-05/0.1747, allocations: 0 / 485.1 MB, free: 220 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.1758, allocations: 439.5 kB / 485.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1759, allocations: 0 / 485.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1759, allocations: 4 kB / 485.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1759, allocations: 0 / 485.5 MB, free: 15.78 MB / 366.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.0005837/0.1765, allocations: 437.5 kB / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.1765, allocations: 8.031 kB / 485.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.1766, allocations: 8.938 kB / 485.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.1767, allocations: 172.2 kB / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.1767, allocations: 384 / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-06/0.1767, allocations: 384 / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.511e-05/0.1768, allocations: 38.02 kB / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1769, allocations: 0 / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1769, allocations: 0 / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.1769, allocations: 0 / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.01e-05/0.1769, allocations: 0 / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.1771, allocations: 149.7 kB / 486.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.859e-05/0.1771, allocations: 22.52 kB / 486.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.484e-05/0.1771, allocations: 4.859 kB / 486.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.1772, allocations: 8.094 kB / 486.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.1772, allocations: 64.14 kB / 486.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.1772, allocations: 0 / 486.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001867/0.1774, allocations: 63.39 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.1775, allocations: 77.11 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.258e-05/0.1775, allocations: 93.86 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.1775, allocations: 25.7 kB / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.326e-05/0.1776, allocations: 80.14 kB / 486.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.1776, allocations: 8.062 kB / 486.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.1776, allocations: 13.72 kB / 486.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1778, allocations: 310.8 kB / 487 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.033e-05/0.1778, allocations: 0 / 487 MB, free: 13.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-06/0.1778, allocations: 4 kB / 487 MB, free: 13.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.036e-05/0.1779, allocations: 68.25 kB / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1779, allocations: 0 / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.921e-05/0.178, allocations: 59.47 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/0.178, allocations: 37.64 kB / 487.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.178, allocations: 3.938 kB / 487.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.178, allocations: 0 / 487.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.016e-06/0.1781, allocations: 3.984 kB / 487.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1781, allocations: 3.938 kB / 487.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.778e-05/0.1781, allocations: 0 / 487.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.1781, allocations: 4 kB / 487.2 MB, free: 13.78 MB / 366.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.0001018/0.1782, allocations: 131.5 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.1782, allocations: 7.969 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.044e-05/0.1782, allocations: 3.125 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1783, allocations: 4 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1783, allocations: 0 / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.1783, allocations: 3.984 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.1784, allocations: 149.7 kB / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1784, allocations: 0 / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.254e-06/0.1784, allocations: 4 kB / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.1784, allocations: 3.938 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-06/0.1784, allocations: 4 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1784, allocations: 0 / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1784, allocations: 4 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.1785, allocations: 94.81 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-05/0.1786, allocations: 84.95 kB / 487.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.1786, allocations: 3.938 kB / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.171e-05/0.1786, allocations: 0 / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.296e-05/0.1786, allocations: 3.938 kB / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.1787, allocations: 4 kB / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.833e-05/0.1787, allocations: 79.31 kB / 487.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1787, allocations: 0 / 487.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005605/0.1793, allocations: 152 kB / 487.9 MB, free: 12.95 MB / 366.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.0009808/0.1802, allocations: 389.5 kB / 488.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.1804, allocations: 59.39 kB / 488.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1804, allocations: 0 / 488.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.72e-05/0.1804, allocations: 55.41 kB / 488.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.1806, allocations: 6.188 kB / 488.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002225/0.1808, allocations: 77.06 kB / 488.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.1811, allocations: 0.6768 MB / 489.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.164e-06/0.1811, allocations: 3.938 kB / 489.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.391e-05/0.1811, allocations: 7.438 kB / 489.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1811, allocations: 0 / 489.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of Templates: time 0.009005/0.1902, allocations: 4.606 MB / 493.8 MB, free: 6.996 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches