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.0009264/0.0009262, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008675/0.0008675, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2492/0.2492, allocations: 46.19 MB / 344.8 MB, free: 11.3 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.000304, allocations: 8 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1416, allocations: 63.56 MB / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006085/0.1423, allocations: 197.2 kB / 482.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003114/0.1454, allocations: 2.239 MB / 484.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.122e-05/0.1455, allocations: 4 kB / 484.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.7e-05/0.1455, allocations: 0 / 484.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.1455, allocations: 3.938 kB / 484.8 MB, free: 2.059 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.00222/0.1477, allocations: 0.9153 MB / 485.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.39e-05/0.1478, allocations: 0 / 485.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.716e-05/0.1478, allocations: 3.938 kB / 485.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.612e-05/0.1479, allocations: 0 / 485.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.905e-05/0.1479, allocations: 3.984 kB / 485.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-06/0.1479, allocations: 4 kB / 485.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.1493, allocations: 0.9365 MB / 486.7 MB, free: 200 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.484e-06/0.1494, allocations: 0 / 486.7 MB, free: 200 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.739e-05/0.1494, allocations: 29.7 kB / 486.7 MB, free: 164 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.1498, allocations: 275.5 kB / 487 MB, free: 15.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.1499, allocations: 0 / 487 MB, free: 15.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1499, allocations: 0 / 487 MB, free: 15.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1499, allocations: 0 / 487 MB, free: 15.89 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.0003958/0.1503, allocations: 433.3 kB / 487.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1503, allocations: 12.03 kB / 487.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.1504, allocations: 0 / 487.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.1505, allocations: 171 kB / 487.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.1505, allocations: 11.92 kB / 487.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.819e-06/0.1505, allocations: 0 / 487.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.711e-05/0.1506, allocations: 33.64 kB / 487.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1506, allocations: 3.984 kB / 487.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.1506, allocations: 0 / 487.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1506, allocations: 0 / 487.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.825e-05/0.1507, allocations: 0 / 487.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.1508, allocations: 149.6 kB / 487.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.742e-05/0.1509, allocations: 18.58 kB / 487.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.441e-05/0.1509, allocations: 8.859 kB / 487.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.1509, allocations: 4.094 kB / 487.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.1509, allocations: 64.19 kB / 487.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.1509, allocations: 0 / 487.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001606/0.1511, allocations: 59.41 kB / 487.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.1512, allocations: 77.11 kB / 488 MB, free: 14.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.823e-05/0.1512, allocations: 93.92 kB / 488.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.1512, allocations: 33.7 kB / 488.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.1513, allocations: 80.14 kB / 488.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.1513, allocations: 0 / 488.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.984e-06/0.1513, allocations: 4 kB / 488.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1514, allocations: 314.8 kB / 488.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-06/0.1514, allocations: 0 / 488.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-06/0.1515, allocations: 3.938 kB / 488.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.787e-05/0.1515, allocations: 29.7 kB / 488.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1515, allocations: 4.062 kB / 488.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.365e-05/0.1516, allocations: 59.36 kB / 488.6 MB, free: 14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/0.1516, allocations: 41.69 kB / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1516, allocations: 0 / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.1516, allocations: 0 / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-07/0.1516, allocations: 0 / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1517, allocations: 0 / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.524e-05/0.1517, allocations: 4 kB / 488.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.1517, allocations: 4 kB / 488.7 MB, free: 13.95 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.552e-05/0.1518, allocations: 135.6 kB / 488.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-06/0.1518, allocations: 3.953 kB / 488.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.606e-06/0.1518, allocations: 7.125 kB / 488.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1518, allocations: 0 / 488.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1518, allocations: 0 / 488.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.1518, allocations: 0 / 488.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.006e-05/0.1519, allocations: 145.7 kB / 489 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.1519, allocations: 0 / 489 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.1519, allocations: 0 / 489 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1519, allocations: 11.89 kB / 489 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.152, allocations: 7.938 kB / 489 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.152, allocations: 0 / 489 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.152, allocations: 0 / 489 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.299e-05/0.1521, allocations: 90.83 kB / 489.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.1521, allocations: 81.02 kB / 489.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.1521, allocations: 3.953 kB / 489.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.634e-06/0.1521, allocations: 0 / 489.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.056e-05/0.1522, allocations: 11.98 kB / 489.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.1522, allocations: 7.969 kB / 489.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.687e-05/0.1522, allocations: 75.28 kB / 489.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1522, allocations: 0 / 489.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004114/0.1526, allocations: 148 kB / 489.4 MB, free: 13.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007142/0.1534, allocations: 381.2 kB / 489.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.503e-05/0.1535, allocations: 63.34 kB / 489.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1535, allocations: 0 / 489.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.338e-05/0.1535, allocations: 59.41 kB / 489.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1536, allocations: 2.188 kB / 489.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001955/0.1538, allocations: 78.88 kB / 490 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.1541, allocations: 0.6731 MB / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.781e-06/0.1541, allocations: 0 / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.063e-05/0.1542, allocations: 7.438 kB / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1542, allocations: 0 / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of Templates: time 0.007936/0.1621, allocations: 4.395 MB / 495 MB, free: 7.398 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