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.0008169/0.0008172, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000981/0.000981, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2238/0.2238, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002454, allocations: 8 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1391, allocations: 63.57 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.000589/0.1397, allocations: 197.2 kB / 483.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003735/0.1434, allocations: 2.417 MB / 485.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.369e-05/0.1435, allocations: 8 kB / 485.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.977e-05/0.1435, allocations: 3.938 kB / 485.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.1435, allocations: 3.938 kB / 485.7 MB, free: 1.512 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.002495/0.146, allocations: 1.039 MB / 486.7 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.866e-05/0.1461, allocations: 3.984 kB / 486.7 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.906e-05/0.1461, allocations: 4 kB / 486.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.564e-05/0.1461, allocations: 0 / 486.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.122e-05/0.1462, allocations: 0 / 486.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-06/0.1462, allocations: 0 / 486.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00154/0.1477, allocations: 1.007 MB / 487.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.765e-06/0.1478, allocations: 0 / 487.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.502e-05/0.1478, allocations: 29.7 kB / 487.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005753/0.1484, allocations: 435.3 kB / 488.2 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1484, allocations: 4 kB / 488.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1484, allocations: 0 / 488.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1484, allocations: 4 kB / 488.2 MB, free: 14.99 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.0004359/0.1489, allocations: 436.9 kB / 488.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1489, allocations: 8.875 kB / 488.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.951e-05/0.1489, allocations: 0.9375 kB / 488.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.497e-05/0.149, allocations: 168.3 kB / 488.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1491, allocations: 8.375 kB / 488.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.1491, allocations: 384 / 488.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.07e-05/0.1492, allocations: 34 kB / 488.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.1492, allocations: 3.984 kB / 488.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.1492, allocations: 4 kB / 488.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.1492, allocations: 0 / 488.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.661e-05/0.1492, allocations: 0 / 488.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001346/0.1494, allocations: 145.7 kB / 489 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.35e-05/0.1494, allocations: 26.55 kB / 489 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.572e-05/0.1495, allocations: 4.859 kB / 489 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.1495, allocations: 0 / 489 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/0.1495, allocations: 76.12 kB / 489.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.1495, allocations: 0 / 489.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001709/0.1497, allocations: 63.41 kB / 489.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.1498, allocations: 77.11 kB / 489.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.583e-05/0.1498, allocations: 93.98 kB / 489.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.1498, allocations: 29.64 kB / 489.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.643e-05/0.1499, allocations: 84.12 kB / 489.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.1499, allocations: 3.984 kB / 489.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-05/0.1499, allocations: 9.719 kB / 489.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.15, allocations: 314.8 kB / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.299e-05/0.1501, allocations: 0 / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-06/0.1501, allocations: 0 / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.895e-05/0.1501, allocations: 68.33 kB / 489.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1502, allocations: 0 / 489.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.294e-05/0.1502, allocations: 63.39 kB / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.1503, allocations: 33.64 kB / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1503, allocations: 0 / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.1503, allocations: 0 / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.03e-06/0.1503, allocations: 7.938 kB / 489.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.1503, allocations: 0 / 489.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.494e-05/0.1503, allocations: 4 kB / 490 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.1504, allocations: 0 / 490 MB, free: 12.99 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 8.694e-05/0.1505, allocations: 139.6 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.113e-05/0.1505, allocations: 11.92 kB / 490.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.215e-06/0.1505, allocations: 3.125 kB / 490.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1505, allocations: 0 / 490.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1505, allocations: 0 / 490.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1505, allocations: 0 / 490.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.116e-05/0.1506, allocations: 141.7 kB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1506, allocations: 4 kB / 490.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1506, allocations: 0 / 490.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1506, allocations: 3.938 kB / 490.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.1506, allocations: 7.984 kB / 490.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1506, allocations: 0 / 490.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1506, allocations: 0 / 490.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.184e-05/0.1507, allocations: 86.84 kB / 490.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.1508, allocations: 88.94 kB / 490.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1508, allocations: 7.875 kB / 490.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-06/0.1508, allocations: 4 kB / 490.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.1508, allocations: 4.031 kB / 490.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1508, allocations: 0 / 490.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.424e-05/0.1509, allocations: 75.28 kB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1509, allocations: 3.938 kB / 490.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000447/0.1513, allocations: 160 kB / 490.7 MB, free: 12.16 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.0007341/0.1521, allocations: 373.1 kB / 491 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.14e-05/0.1522, allocations: 55.41 kB / 491.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1522, allocations: 0 / 491.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.067e-05/0.1522, allocations: 59.39 kB / 491.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.1524, allocations: 2.156 kB / 491.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001928/0.1526, allocations: 82.77 kB / 491.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.1528, allocations: 0.6731 MB / 491.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.67e-06/0.1528, allocations: 0 / 491.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.1528, allocations: 15.42 kB / 491.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1529, allocations: 0 / 491.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of Templates: time 0.008095/0.161, allocations: 4.598 MB / 496.5 MB, free: 6.227 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