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.001172/0.001172, allocations: 102.7 kB / 17.63 MB, free: 5.344 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.00131/0.00131, allocations: 192 kB / 18.56 MB, free: 4.434 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.364/1.364, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.2105/0.2105, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001255, allocations: 66.97 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1386, allocations: 60.83 MB / 469.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001996/0.1407, allocations: 459.7 kB / 469.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003405/0.1441, allocations: 2.286 MB / 472 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.476e-05/0.1441, allocations: 0 / 472 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.546e-05/0.1442, allocations: 0 / 472 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.562e-06/0.1442, allocations: 0 / 472 MB, free: 11.61 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.002927/0.1471, allocations: 1.131 MB / 473.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.268e-05/0.1472, allocations: 8 kB / 473.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.274e-05/0.1473, allocations: 0 / 473.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.344e-05/0.1473, allocations: 0 / 473.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.917e-05/0.1474, allocations: 7.984 kB / 473.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.407e-06/0.1474, allocations: 0 / 473.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002132/0.1495, allocations: 0.9522 MB / 474.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.336e-06/0.1495, allocations: 7.938 kB / 474.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.03e-05/0.1496, allocations: 4 kB / 474.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008775/0.1505, allocations: 419.4 kB / 474.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1505, allocations: 0 / 474.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1505, allocations: 0 / 474.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1505, allocations: 0 / 474.5 MB, free: 9.094 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.0005328/0.1511, allocations: 433.2 kB / 474.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1511, allocations: 8.031 kB / 474.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/0.1511, allocations: 0.9375 kB / 474.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.1513, allocations: 164.4 kB / 475.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.1513, allocations: 4.375 kB / 475.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.1513, allocations: 4.375 kB / 475.1 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.1514, allocations: 37.94 kB / 475.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1514, allocations: 4 kB / 475.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1514, allocations: 0 / 475.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1514, allocations: 3.938 kB / 475.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.068e-05/0.1515, allocations: 0 / 475.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001341/0.1516, allocations: 145.7 kB / 475.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.619e-05/0.1517, allocations: 22.59 kB / 475.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.464e-05/0.1517, allocations: 8.859 kB / 475.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.1517, allocations: 0 / 475.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.1518, allocations: 68.2 kB / 475.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1518, allocations: 0 / 475.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001898/0.152, allocations: 63.41 kB / 475.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.152, allocations: 81.09 kB / 475.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.164e-05/0.1521, allocations: 89.86 kB / 475.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1521, allocations: 29.83 kB / 475.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.875e-05/0.1521, allocations: 80.14 kB / 475.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.1522, allocations: 0 / 475.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.1522, allocations: 13.72 kB / 475.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1523, allocations: 310.8 kB / 476 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.091e-05/0.1523, allocations: 0 / 476 MB, free: 7.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-06/0.1523, allocations: 3.938 kB / 476 MB, free: 7.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.53e-05/0.1524, allocations: 68.33 kB / 476.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1524, allocations: 3.938 kB / 476.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.303e-05/0.1525, allocations: 63.39 kB / 476.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.1525, allocations: 33.64 kB / 476.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1525, allocations: 4 kB / 476.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1526, allocations: 0 / 476.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1526, allocations: 0 / 476.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1526, allocations: 0 / 476.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.1526, allocations: 288 / 476.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.1526, allocations: 0 / 476.2 MB, free: 7.109 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.341e-05/0.1527, allocations: 147.6 kB / 476.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.036e-05/0.1527, allocations: 3.938 kB / 476.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.233e-05/0.1527, allocations: 7.078 kB / 476.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1528, allocations: 3.984 kB / 476.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1528, allocations: 3.938 kB / 476.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1528, allocations: 4 kB / 476.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.993e-05/0.1529, allocations: 153.6 kB / 476.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.1529, allocations: 0 / 476.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1529, allocations: 3.938 kB / 476.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1529, allocations: 7.938 kB / 476.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.1529, allocations: 0 / 476.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1529, allocations: 4 kB / 476.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1529, allocations: 0 / 476.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.88e-05/0.153, allocations: 90.73 kB / 476.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.1531, allocations: 85.11 kB / 476.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.1531, allocations: 3.938 kB / 476.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.498e-06/0.1531, allocations: 0 / 476.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.583e-05/0.1531, allocations: 4.031 kB / 476.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.1531, allocations: 0 / 476.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.695e-05/0.1532, allocations: 75.28 kB / 476.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1532, allocations: 4 kB / 476.8 MB, free: 6.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004934/0.1537, allocations: 140 kB / 476.9 MB, free: 6.273 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 (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.0007208/0.1544, allocations: 371 kB / 477.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.1545, allocations: 59.41 kB / 477.4 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1545, allocations: 4 kB / 477.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.1546, allocations: 63.39 kB / 477.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.1547, allocations: 128 / 477.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001879/0.1549, allocations: 80.94 kB / 477.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.1551, allocations: 0.669 MB / 478.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.083e-06/0.1552, allocations: 0 / 478.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.419e-05/0.1552, allocations: 11.44 kB / 478.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1552, allocations: 0 / 478.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of Templates: time 0.008585/0.1638, allocations: 4.301 MB / 482.5 MB, free: 0.6484 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches