Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009117/0.0009116, allocations: 174.1 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008438/0.0008441, allocations: 88.77 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3797/0.3797, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003658, allocations: 16 kB / 432.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1294, allocations: 58.85 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3745/0.504, allocations: 88.81 MB / 0.5667 GB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.5042, allocations: 67.97 kB / 0.5667 GB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02678/0.531, allocations: 9.627 MB / 0.5761 GB, free: 3.508 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.5311, allocations: 0 / 0.5761 GB, free: 3.508 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.5311, allocations: 0 / 0.5761 GB, free: 3.508 MB / 394.7 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.0006263/0.5317, allocations: 481.9 kB / 0.5766 GB, free: 2.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.5318, allocations: 12.03 kB / 0.5766 GB, free: 2.969 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.5318, allocations: 0.9375 kB / 0.5766 GB, free: 2.969 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.5319, allocations: 164.4 kB / 0.5768 GB, free: 2.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.532, allocations: 384 / 0.5768 GB, free: 2.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.532, allocations: 384 / 0.5768 GB, free: 2.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.177e-05/0.5321, allocations: 34.25 kB / 0.5768 GB, free: 2.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.5321, allocations: 192 / 0.5768 GB, free: 2.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.5321, allocations: 3.938 kB / 0.5768 GB, free: 2.727 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.5321, allocations: 4 kB / 0.5768 GB, free: 2.723 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.76e-05/0.5321, allocations: 4.969 kB / 0.5768 GB, free: 2.719 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001398/0.5323, allocations: 153.7 kB / 0.577 GB, free: 2.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.373e-05/0.5323, allocations: 14.58 kB / 0.577 GB, free: 2.496 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.599e-05/0.5323, allocations: 13.38 kB / 0.577 GB, free: 2.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.009e-06/0.5323, allocations: 0 / 0.577 GB, free: 2.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.505e-05/0.5324, allocations: 60.27 kB / 0.577 GB, free: 2.406 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.5324, allocations: 0 / 0.577 GB, free: 2.406 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001643/0.5326, allocations: 75.89 kB / 0.5771 GB, free: 2.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.5326, allocations: 77.11 kB / 0.5772 GB, free: 2.227 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.405e-05/0.5327, allocations: 89.86 kB / 0.5773 GB, free: 2.129 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.5327, allocations: 29.64 kB / 0.5773 GB, free: 2.094 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.457e-05/0.5327, allocations: 83.05 kB / 0.5774 GB, free: 2.012 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.5328, allocations: 4.938 kB / 0.5774 GB, free: 2.008 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.5328, allocations: 0 / 0.5774 GB, free: 2.008 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.5329, allocations: 315 kB / 0.5777 GB, free: 1.691 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.175e-06/0.5329, allocations: 0 / 0.5777 GB, free: 1.691 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.218e-06/0.5329, allocations: 0 / 0.5777 GB, free: 1.691 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.809e-05/0.533, allocations: 68.25 kB / 0.5778 GB, free: 1.609 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.533, allocations: 0 / 0.5778 GB, free: 1.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.382e-05/0.5331, allocations: 63.34 kB / 0.5778 GB, free: 1.535 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.5331, allocations: 29.7 kB / 0.5778 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.5331, allocations: 0 / 0.5778 GB, free: 1.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.5331, allocations: 12.03 kB / 0.5779 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.5331, allocations: 0 / 0.5779 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.5332, allocations: 0 / 0.5779 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.186e-05/0.5332, allocations: 3.812 kB / 0.5779 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.5332, allocations: 3.984 kB / 0.5779 GB, free: 1.484 MB / 394.7 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 7.715e-05/0.5333, allocations: 139.5 kB / 0.578 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-06/0.5333, allocations: 0 / 0.578 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.53e-05/0.5333, allocations: 7.062 kB / 0.578 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.5333, allocations: 0 / 0.578 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.5333, allocations: 4 kB / 0.578 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.5333, allocations: 0 / 0.578 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.5334, allocations: 149.7 kB / 0.5781 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.5334, allocations: 0 / 0.5781 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.5334, allocations: 0 / 0.5781 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.5334, allocations: 0 / 0.5781 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.5335, allocations: 3.938 kB / 0.5782 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.5335, allocations: 0 / 0.5782 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.5335, allocations: 0 / 0.5782 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.777e-05/0.5336, allocations: 100.8 kB / 0.5782 GB, free: 1.004 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.5336, allocations: 77.11 kB / 0.5783 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.5336, allocations: 8.969 kB / 0.5783 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-06/0.5336, allocations: 0 / 0.5783 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.5337, allocations: 0 / 0.5783 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-06/0.5337, allocations: 0 / 0.5783 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.722e-05/0.5337, allocations: 83.22 kB / 0.5784 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5337, allocations: 0 / 0.5784 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005269/0.5342, allocations: 179.8 kB / 0.5786 GB, free: 0.6445 MB / 394.7 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.0007019/0.5349, allocations: 399.9 kB / 0.579 GB, free: 256 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.846e-05/0.535, allocations: 71.39 kB / 0.579 GB, free: 172 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.535, allocations: 0 / 0.579 GB, free: 172 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.899e-05/0.5351, allocations: 55.34 kB / 0.5791 GB, free: 104 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001152/0.5352, allocations: 4 kB / 0.5791 GB, free: 100 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001868/0.5354, allocations: 77.56 kB / 0.5792 GB, free: 15.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.5356, allocations: 0.6731 MB / 0.5798 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.479e-06/0.5357, allocations: 0 / 0.5798 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.307e-06/0.5357, allocations: 7.438 kB / 0.5798 GB, free: 15.29 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5357, allocations: 0 / 0.5798 GB, free: 15.29 MB / 410.7 MB Notification: Performance of Templates: time 0.006987/0.5427, allocations: 4.238 MB / 0.584 GB, free: 11.06 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches