Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 105.5 kB / 15.98 MB, free: 6.34 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.001755/0.001755, allocations: 190.8 kB / 16.9 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3681/0.3681, allocations: 43.5 MB / 313.6 MB, free: 8.527 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002602/0.002602, allocations: 63.91 kB / 382.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1655, allocations: 57.79 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002049/0.1676, allocations: 0.5386 MB / 440.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003496/0.1711, allocations: 2.3 MB / 442.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.421e-05/0.1711, allocations: 0 / 442.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.557e-05/0.1712, allocations: 0 / 442.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.1712, allocations: 0 / 442.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002876/0.1741, allocations: 1.052 MB / 444 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.569e-05/0.1742, allocations: 0 / 444 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.69e-05/0.1742, allocations: 7.984 kB / 444 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.839e-05/0.1742, allocations: 7.984 kB / 444 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.46e-05/0.1743, allocations: 0 / 444 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-06/0.1743, allocations: 0 / 444 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001724/0.176, allocations: 0.9638 MB / 445 MB, free: 9.746 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.151e-05/0.176, allocations: 0 / 445 MB, free: 9.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.176, allocations: 3.984 kB / 445 MB, free: 9.742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008427/0.1769, allocations: 415.4 kB / 445.4 MB, free: 9.336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1769, allocations: 0 / 445.4 MB, free: 9.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1769, allocations: 0 / 445.4 MB, free: 9.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.1769, allocations: 0 / 445.4 MB, free: 9.336 MB / 382.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.0005217/0.1775, allocations: 429.5 kB / 445.8 MB, free: 8.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.1775, allocations: 15.89 kB / 445.8 MB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.972e-05/0.1776, allocations: 38.75 kB / 445.8 MB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.356e-05/0.1776, allocations: 4.844 kB / 445.9 MB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.1777, allocations: 164.3 kB / 446 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.1777, allocations: 384 / 446 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1777, allocations: 384 / 446 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.1779, allocations: 41.81 kB / 446.1 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.1779, allocations: 0 / 446.1 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.1779, allocations: 0 / 446.1 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.1779, allocations: 0 / 446.1 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.39e-05/0.1779, allocations: 4 kB / 446.1 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.1781, allocations: 149.6 kB / 446.2 MB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.994e-05/0.1781, allocations: 22.52 kB / 446.2 MB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.089e-05/0.1782, allocations: 12.94 kB / 446.2 MB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-06/0.1782, allocations: 0 / 446.2 MB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/0.1783, allocations: 60.2 kB / 446.3 MB, free: 8.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1783, allocations: 3.938 kB / 446.3 MB, free: 8.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001906/0.1785, allocations: 63.41 kB / 446.4 MB, free: 8.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.1785, allocations: 81.09 kB / 446.4 MB, free: 8.055 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.612e-05/0.1786, allocations: 93.86 kB / 446.5 MB, free: 7.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.1786, allocations: 29.64 kB / 446.6 MB, free: 7.918 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.03e-05/0.1786, allocations: 84.14 kB / 446.6 MB, free: 7.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.1787, allocations: 3.984 kB / 446.6 MB, free: 7.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.1787, allocations: 9.719 kB / 446.7 MB, free: 7.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1788, allocations: 310.8 kB / 447 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.414e-05/0.1788, allocations: 8.125 kB / 447 MB, free: 7.492 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.855e-06/0.1789, allocations: 3.938 kB / 447 MB, free: 7.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.525e-05/0.1789, allocations: 64.27 kB / 447 MB, free: 7.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1789, allocations: 0 / 447 MB, free: 7.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.411e-05/0.179, allocations: 63.39 kB / 447.1 MB, free: 7.336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.1791, allocations: 33.64 kB / 447.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1791, allocations: 0 / 447.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1791, allocations: 0 / 447.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.435e-06/0.1791, allocations: 4.031 kB / 447.1 MB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.1791, allocations: 7.984 kB / 447.1 MB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.796e-05/0.1791, allocations: 4 kB / 447.1 MB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.1791, allocations: 0 / 447.1 MB, free: 7.281 MB / 382.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.433e-05/0.1792, allocations: 135.5 kB / 447.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.214e-05/0.1793, allocations: 7.938 kB / 447.3 MB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.411e-05/0.1793, allocations: 7.125 kB / 447.3 MB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1793, allocations: 0 / 447.3 MB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1793, allocations: 0 / 447.3 MB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1793, allocations: 0 / 447.3 MB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.902e-05/0.1794, allocations: 149.7 kB / 447.4 MB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1794, allocations: 4 kB / 447.4 MB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1794, allocations: 4 kB / 447.4 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1794, allocations: 3.938 kB / 447.5 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1794, allocations: 0 / 447.5 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1795, allocations: 0 / 447.5 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1795, allocations: 0 / 447.5 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.1796, allocations: 94.83 kB / 447.5 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.1796, allocations: 81.05 kB / 447.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1796, allocations: 7.875 kB / 447.6 MB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.1797, allocations: 0 / 447.6 MB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.1797, allocations: 4 kB / 447.6 MB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1797, allocations: 0 / 447.6 MB, free: 6.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.877e-05/0.1797, allocations: 75.28 kB / 447.7 MB, free: 6.609 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1797, allocations: 0 / 447.7 MB, free: 6.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005008/0.1802, allocations: 140 kB / 447.8 MB, free: 6.473 MB / 382.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.001049/0.1813, allocations: 0.9058 MB / 448.8 MB, free: 5.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.1814, allocations: 59.34 kB / 448.8 MB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1814, allocations: 0 / 448.8 MB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.457e-05/0.1815, allocations: 63.39 kB / 448.9 MB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.1816, allocations: 0 / 448.9 MB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003868/0.182, allocations: 178.5 kB / 449 MB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.1822, allocations: 0.6729 MB / 449.7 MB, free: 4.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.895e-06/0.1823, allocations: 4 kB / 449.7 MB, free: 4.477 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.149e-05/0.1823, allocations: 15.42 kB / 449.7 MB, free: 4.461 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1823, allocations: 0 / 449.7 MB, free: 4.461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2193/0.4016, allocations: 5.201 MB / 454.9 MB, free: 48.18 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.4018, allocations: 235.4 kB / 455.2 MB, free: 47.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.82/3.222, allocations: 0 / 455.2 MB, free: 47.93 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches