Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 82.41 kB / 417.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1591, allocations: 62.45 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001849/0.161, allocations: 471.7 kB / 480.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00351/0.1646, allocations: 2.415 MB / 483 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.1647, allocations: 0 / 483 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.078e-05/0.1647, allocations: 3.938 kB / 483 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.089e-06/0.1647, allocations: 0 / 483 MB, free: 2.316 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.002752/0.1675, allocations: 1.14 MB / 484.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.168e-05/0.1675, allocations: 0 / 484.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.755e-05/0.1676, allocations: 4 kB / 484.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.1676, allocations: 3.984 kB / 484.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.351e-05/0.1676, allocations: 0 / 484.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-06/0.1677, allocations: 3.938 kB / 484.1 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.1691, allocations: 1.011 MB / 485.1 MB, free: 156 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.101e-05/0.1692, allocations: 8 kB / 485.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.289e-05/0.1692, allocations: 0 / 485.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000593/0.1698, allocations: 451.4 kB / 485.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1698, allocations: 0 / 485.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1698, allocations: 0 / 485.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.1698, allocations: 0 / 485.6 MB, free: 15.7 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.0004515/0.1703, allocations: 437.5 kB / 486 MB, free: 15.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1703, allocations: 8.031 kB / 486 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.354e-05/0.1704, allocations: 0.9375 kB / 486 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1705, allocations: 164.3 kB / 486.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.1705, allocations: 4.375 kB / 486.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.1705, allocations: 4.375 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.304e-05/0.1706, allocations: 34 kB / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1706, allocations: 0 / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1707, allocations: 7.844 kB / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1707, allocations: 0 / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.695e-05/0.1707, allocations: 4 kB / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.1708, allocations: 141.7 kB / 486.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.339e-05/0.1709, allocations: 22.61 kB / 486.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.1709, allocations: 8.844 kB / 486.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.044e-06/0.1709, allocations: 3.938 kB / 486.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.171, allocations: 64.2 kB / 486.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.171, allocations: 0 / 486.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001928/0.1712, allocations: 63.41 kB / 486.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.1712, allocations: 81.11 kB / 486.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.794e-05/0.1713, allocations: 97.97 kB / 486.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.1713, allocations: 25.7 kB / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.456e-05/0.1713, allocations: 80.14 kB / 486.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.1714, allocations: 0 / 486.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.1714, allocations: 17.72 kB / 486.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1715, allocations: 310.8 kB / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.1715, allocations: 0 / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.371e-06/0.1715, allocations: 0 / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.373e-05/0.1716, allocations: 68.27 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1716, allocations: 0 / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.983e-05/0.1717, allocations: 71.39 kB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.689e-05/0.1717, allocations: 36.14 kB / 487.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1717, allocations: 3.984 kB / 487.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1718, allocations: 0 / 487.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.1718, allocations: 4 kB / 487.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1718, allocations: 0 / 487.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.601e-05/0.1718, allocations: 3.938 kB / 487.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.1718, allocations: 4.031 kB / 487.3 MB, free: 13.7 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 9.49e-05/0.1719, allocations: 139.5 kB / 487.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-06/0.1719, allocations: 3.938 kB / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-06/0.1719, allocations: 3.125 kB / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1719, allocations: 0 / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.172, allocations: 0 / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.172, allocations: 0 / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.1721, allocations: 145.7 kB / 487.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1721, allocations: 3.984 kB / 487.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.1721, allocations: 0 / 487.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1721, allocations: 7.938 kB / 487.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.1721, allocations: 0 / 487.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1721, allocations: 3.938 kB / 487.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1721, allocations: 0 / 487.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.369e-05/0.1722, allocations: 98.77 kB / 487.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.1723, allocations: 81.02 kB / 487.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.1723, allocations: 7.938 kB / 487.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-06/0.1723, allocations: 4.031 kB / 487.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.501e-05/0.1723, allocations: 0 / 487.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.1723, allocations: 0 / 487.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.695e-05/0.1724, allocations: 75.28 kB / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1724, allocations: 0 / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004643/0.1728, allocations: 156 kB / 488 MB, free: 12.88 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.0007045/0.1735, allocations: 380.3 kB / 488.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.77e-05/0.1737, allocations: 63.34 kB / 488.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1737, allocations: 3.938 kB / 488.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.983e-05/0.1737, allocations: 59.39 kB / 488.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1738, allocations: 4.125 kB / 488.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001915/0.174, allocations: 76.94 kB / 488.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.1743, allocations: 0.669 MB / 489.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.971e-06/0.1743, allocations: 0 / 489.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/0.1743, allocations: 11.44 kB / 489.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1743, allocations: 0 / 489.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of Templates: time 0.008185/0.1825, allocations: 4.599 MB / 493.9 MB, free: 6.938 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches