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.001023/0.001023, allocations: 108.3 kB / 18.41 MB, free: 4.695 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.000979/0.0009793, allocations: 191 kB / 19.34 MB, free: 3.766 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.376/1.376, allocations: 222.9 MB / 243 MB, free: 15.14 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.2526/0.2526, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 68.39 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1396, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00208/0.1417, allocations: 466.4 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003834/0.1456, allocations: 2.282 MB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.043e-05/0.1456, allocations: 11.94 kB / 473.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.48e-05/0.1456, allocations: 0 / 473.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.169e-06/0.1457, allocations: 0 / 473.5 MB, free: 10.88 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.002998/0.1487, allocations: 1.125 MB / 474.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.912e-05/0.1487, allocations: 0 / 474.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.716e-05/0.1488, allocations: 4 kB / 474.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.085e-05/0.1488, allocations: 4 kB / 474.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.564e-05/0.1489, allocations: 3.984 kB / 474.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.756e-06/0.1489, allocations: 3.938 kB / 474.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.1506, allocations: 0.9834 MB / 475.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.185e-05/0.1507, allocations: 3.984 kB / 475.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.759e-05/0.1507, allocations: 7.938 kB / 475.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007235/0.1514, allocations: 419.3 kB / 476 MB, free: 8.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.1514, allocations: 0 / 476 MB, free: 8.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1514, allocations: 0 / 476 MB, free: 8.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1515, allocations: 4 kB / 476 MB, free: 8.332 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.0007142/0.1522, allocations: 429.1 kB / 476.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.1522, allocations: 12.03 kB / 476.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.729e-05/0.1523, allocations: 0.9375 kB / 476.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.1525, allocations: 164.4 kB / 476.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.1525, allocations: 384 / 476.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.1525, allocations: 384 / 476.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.1526, allocations: 34.02 kB / 476.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1527, allocations: 0 / 476.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.1527, allocations: 4 kB / 476.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1527, allocations: 0 / 476.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.505e-05/0.1527, allocations: 0 / 476.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000287/0.153, allocations: 157.6 kB / 476.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.283e-05/0.1531, allocations: 14.58 kB / 476.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.8e-05/0.1531, allocations: 4.953 kB / 476.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.1531, allocations: 4 kB / 476.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.112e-05/0.1532, allocations: 68.2 kB / 476.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1532, allocations: 0 / 476.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002262/0.1534, allocations: 71.33 kB / 476.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.1535, allocations: 77.11 kB / 477 MB, free: 7.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.9e-05/0.1536, allocations: 89.86 kB / 477.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.1536, allocations: 25.7 kB / 477.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.1536, allocations: 80.14 kB / 477.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.1537, allocations: 4 kB / 477.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-05/0.1537, allocations: 13.84 kB / 477.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1538, allocations: 314.8 kB / 477.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.382e-05/0.1539, allocations: 4 kB / 477.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.221e-06/0.1539, allocations: 0 / 477.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.657e-05/0.154, allocations: 64.25 kB / 477.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.154, allocations: 0 / 477.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.29e-05/0.154, allocations: 59.34 kB / 477.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.68e-05/0.1541, allocations: 41.73 kB / 477.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1541, allocations: 4 kB / 477.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.1541, allocations: 0 / 477.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1541, allocations: 3.938 kB / 477.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.1541, allocations: 0 / 477.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.82e-05/0.1542, allocations: 0 / 477.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.1542, allocations: 7.984 kB / 477.7 MB, free: 6.344 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 0.0001232/0.1543, allocations: 131.5 kB / 477.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.063e-05/0.1543, allocations: 3.938 kB / 477.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.115e-05/0.1544, allocations: 15.08 kB / 477.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1544, allocations: 0 / 477.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1544, allocations: 0 / 477.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1544, allocations: 3.938 kB / 477.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.1545, allocations: 149.6 kB / 478 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1545, allocations: 3.984 kB / 478 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1546, allocations: 0 / 478 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1546, allocations: 7.938 kB / 478 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.1546, allocations: 0 / 478 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1546, allocations: 0 / 478 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1546, allocations: 0 / 478 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001163/0.1547, allocations: 102.7 kB / 478.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.052e-05/0.1548, allocations: 77.11 kB / 478.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.1548, allocations: 3.938 kB / 478.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-06/0.1548, allocations: 0 / 478.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.94e-05/0.1548, allocations: 11.98 kB / 478.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-06/0.1548, allocations: 0 / 478.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.028e-05/0.1549, allocations: 75.28 kB / 478.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1549, allocations: 4.031 kB / 478.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.1553, allocations: 144 kB / 478.4 MB, free: 5.516 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.0007415/0.1561, allocations: 362.6 kB / 478.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001395/0.1562, allocations: 63.39 kB / 478.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1562, allocations: 0 / 478.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.283e-05/0.1563, allocations: 59.34 kB / 478.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.1564, allocations: 6.5 kB / 478.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002092/0.1566, allocations: 68.94 kB / 479 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/0.157, allocations: 0.6768 MB / 479.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.684e-06/0.157, allocations: 4.125 kB / 479.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.319e-05/0.1571, allocations: 7.438 kB / 479.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1571, allocations: 0 / 479.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of Templates: time 0.009505/0.1666, allocations: 4.294 MB / 484 MB, free: 15.9 MB / 366.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches