Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009749/0.0009749, allocations: 93.92 kB / 16.98 MB, free: 5.938 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.001022/0.001022, allocations: 186.9 kB / 17.88 MB, free: 5.594 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.386/1.386, allocations: 223.2 MB / 241.8 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2708/0.2708, allocations: 44.22 MB / 337.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004521/0.0004523, allocations: 8.625 kB / 409.5 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.144, allocations: 61.92 MB / 471.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005726/0.1447, allocations: 189.3 kB / 471.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003132/0.1478, allocations: 2.121 MB / 473.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.895e-05/0.1478, allocations: 0 / 473.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.1479, allocations: 0 / 473.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.551e-06/0.1479, allocations: 4 kB / 473.8 MB, free: 11.39 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.002319/0.1502, allocations: 0.9021 MB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.241e-05/0.1503, allocations: 0 / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.885e-05/0.1503, allocations: 0 / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.521e-05/0.1503, allocations: 3.938 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.339e-05/0.1504, allocations: 0 / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.1504, allocations: 4 kB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.1514, allocations: 0.7257 MB / 475.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-06/0.1514, allocations: 4 kB / 475.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.627e-05/0.1514, allocations: 25.7 kB / 475.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.1518, allocations: 267.5 kB / 475.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1518, allocations: 0 / 475.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1518, allocations: 0 / 475.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1518, allocations: 0 / 475.7 MB, free: 9.461 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.0003748/0.1522, allocations: 421 kB / 476.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1522, allocations: 8.031 kB / 476.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.211e-05/0.1523, allocations: 0 / 476.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.081e-05/0.1524, allocations: 163.1 kB / 476.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.1524, allocations: 12 kB / 476.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-06/0.1524, allocations: 0 / 476.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.585e-05/0.1525, allocations: 29.66 kB / 476.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1525, allocations: 0 / 476.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.1525, allocations: 0 / 476.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.1526, allocations: 11.92 kB / 476.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.611e-05/0.1526, allocations: 0 / 476.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.1527, allocations: 149.7 kB / 476.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.098e-05/0.1528, allocations: 22.61 kB / 476.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.24e-06/0.1528, allocations: 0 / 476.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/0.1528, allocations: 56.27 kB / 476.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.1528, allocations: 0 / 476.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000184/0.153, allocations: 79.28 kB / 476.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.1531, allocations: 77.11 kB / 476.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.348e-05/0.1531, allocations: 89.86 kB / 476.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.1532, allocations: 29.83 kB / 476.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.763e-05/0.1532, allocations: 84.14 kB / 476.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.1532, allocations: 0 / 476.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-06/0.1532, allocations: 0 / 476.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1533, allocations: 310.8 kB / 477.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.685e-06/0.1533, allocations: 0 / 477.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.823e-06/0.1534, allocations: 4 kB / 477.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.584e-05/0.1534, allocations: 25.7 kB / 477.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1534, allocations: 64 / 477.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.692e-05/0.1535, allocations: 75.33 kB / 477.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.1535, allocations: 31.89 kB / 477.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1535, allocations: 0 / 477.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1535, allocations: 3.953 kB / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.1535, allocations: 0 / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1536, allocations: 4 kB / 477.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.542e-05/0.1536, allocations: 288 / 477.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.1536, allocations: 0 / 477.3 MB, free: 7.555 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 8.662e-05/0.1537, allocations: 144 kB / 477.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.522e-06/0.1537, allocations: 4 kB / 477.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.236e-05/0.1537, allocations: 7.078 kB / 477.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1537, allocations: 0 / 477.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1537, allocations: 3.953 kB / 477.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1537, allocations: 0 / 477.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.487e-05/0.1538, allocations: 153.6 kB / 477.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1538, allocations: 3.984 kB / 477.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1538, allocations: 0 / 477.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1539, allocations: 0 / 477.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.1539, allocations: 0 / 477.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1539, allocations: 4 kB / 477.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1539, allocations: 0 / 477.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.835e-05/0.154, allocations: 102.6 kB / 477.7 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.154, allocations: 77.11 kB / 477.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.1541, allocations: 0 / 477.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.089e-05/0.1541, allocations: 4 kB / 477.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.38e-05/0.1541, allocations: 0 / 477.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.1541, allocations: 4.031 kB / 477.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.661e-05/0.1541, allocations: 79.23 kB / 477.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1541, allocations: 0 / 477.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.1545, allocations: 136 kB / 478 MB, free: 6.738 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.000626/0.1552, allocations: 378.7 kB / 478.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.431e-05/0.1553, allocations: 55.41 kB / 478.5 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1553, allocations: 0 / 478.5 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.084e-05/0.1553, allocations: 63.34 kB / 478.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.999e-05/0.1554, allocations: 0 / 478.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001618/0.1556, allocations: 78.88 kB / 478.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.1558, allocations: 0.6692 MB / 479.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.263e-06/0.1558, allocations: 0 / 479.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.074e-05/0.1558, allocations: 15.38 kB / 479.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1558, allocations: 0 / 479.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of Templates: time 0.008033/0.1639, allocations: 4.067 MB / 483.4 MB, free: 1.34 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches