Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 92.12 kB / 16.98 MB, free: 6.398 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.001154/0.001154, allocations: 183.7 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 241.8 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1939/0.1939, allocations: 44.23 MB / 337.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.000317, allocations: 11.94 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1424, allocations: 61.91 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006822/0.1431, allocations: 201.2 kB / 471.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.1467, allocations: 2.121 MB / 473.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.525e-05/0.1468, allocations: 0 / 473.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.661e-05/0.1468, allocations: 0 / 473.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.464e-06/0.1468, allocations: 0 / 473.8 MB, free: 11.42 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.002402/0.1492, allocations: 0.9033 MB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.944e-05/0.1493, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.815e-05/0.1493, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.653e-05/0.1494, allocations: 3.938 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.143e-05/0.1494, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.504e-06/0.1494, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.1508, allocations: 0.7335 MB / 475.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.867e-06/0.1508, allocations: 0 / 475.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.885e-05/0.1509, allocations: 25.7 kB / 475.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.1513, allocations: 267.5 kB / 475.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1513, allocations: 0 / 475.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1514, allocations: 0 / 475.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1514, allocations: 3.938 kB / 475.7 MB, free: 9.484 MB / 350.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.0005154/0.1519, allocations: 421 kB / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.788e-05/0.152, allocations: 8.031 kB / 476.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/0.152, allocations: 4 kB / 476.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.1521, allocations: 159.1 kB / 476.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.1522, allocations: 0 / 476.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.1522, allocations: 8 kB / 476.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.1523, allocations: 33.64 kB / 476.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.1523, allocations: 0 / 476.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.1524, allocations: 0 / 476.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.1524, allocations: 0 / 476.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.452e-05/0.1524, allocations: 7.938 kB / 476.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00021/0.1526, allocations: 145.7 kB / 476.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.14e-05/0.1527, allocations: 18.61 kB / 476.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.1527, allocations: 4 kB / 476.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.179e-05/0.1528, allocations: 60.25 kB / 476.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1528, allocations: 0 / 476.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002683/0.1531, allocations: 71.36 kB / 476.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.324e-05/0.1532, allocations: 77.11 kB / 476.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.754e-05/0.1533, allocations: 89.86 kB / 476.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.1533, allocations: 25.7 kB / 476.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.287e-05/0.1533, allocations: 84.27 kB / 476.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.1534, allocations: 7.984 kB / 476.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.1534, allocations: 0 / 476.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.1536, allocations: 310.8 kB / 477.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.1536, allocations: 0 / 477.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-06/0.1536, allocations: 0 / 477.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.952e-05/0.1536, allocations: 29.7 kB / 477.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1537, allocations: 0 / 477.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.94e-05/0.1537, allocations: 67.34 kB / 477.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.1538, allocations: 37.78 kB / 477.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.1538, allocations: 0 / 477.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.1538, allocations: 7.938 kB / 477.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.425e-06/0.1538, allocations: 0 / 477.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.1539, allocations: 0 / 477.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.059e-05/0.1539, allocations: 4.281 kB / 477.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.1539, allocations: 0 / 477.3 MB, free: 7.582 MB / 350.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 0.0001252/0.154, allocations: 136 kB / 477.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.154, allocations: 4 kB / 477.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.44e-05/0.1541, allocations: 11.08 kB / 477.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.1541, allocations: 0 / 477.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.1541, allocations: 7.938 kB / 477.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.1541, allocations: 3.938 kB / 477.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.1543, allocations: 149.6 kB / 477.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.1543, allocations: 0 / 477.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1543, allocations: 4 kB / 477.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1543, allocations: 0 / 477.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1543, allocations: 0 / 477.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1543, allocations: 0 / 477.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1543, allocations: 0 / 477.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.1545, allocations: 106.6 kB / 477.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.506e-05/0.1545, allocations: 77.11 kB / 477.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.1545, allocations: 0 / 477.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.146e-05/0.1546, allocations: 3.984 kB / 477.8 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.1546, allocations: 8 kB / 477.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.1546, allocations: 3.984 kB / 477.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.635e-05/0.1546, allocations: 83.27 kB / 477.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1546, allocations: 0 / 477.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004797/0.1551, allocations: 136 kB / 478 MB, free: 6.754 MB / 350.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.0007794/0.1559, allocations: 356.3 kB / 478.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.1561, allocations: 67.39 kB / 478.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1561, allocations: 0 / 478.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.061e-05/0.1561, allocations: 59.34 kB / 478.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.226e-05/0.1562, allocations: 0 / 478.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002197/0.1564, allocations: 66.77 kB / 478.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.1568, allocations: 0.6811 MB / 479.3 MB, free: 5.453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.929e-06/0.1568, allocations: 0 / 479.3 MB, free: 5.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.487e-05/0.1568, allocations: 11.38 kB / 479.3 MB, free: 5.441 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1568, allocations: 4 kB / 479.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of Templates: time 0.008338/0.1652, allocations: 4.078 MB / 483.4 MB, free: 1.359 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches