Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 112.9 kB / 19.17 MB, free: 3.891 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 210.5 kB / 22.13 MB, free: 0.9375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 230.2 MB / 255.1 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2369/0.2369, allocations: 46.88 MB / 358.1 MB, free: 10.52 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002499/0.002499, allocations: 83.84 kB / 0.4923 GB, free: 8.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1656, allocations: 65.98 MB / 0.5568 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002079/0.1676, allocations: 474.8 kB / 0.5572 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004175/0.1718, allocations: 2.426 MB / 0.5596 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.717e-05/0.1718, allocations: 0 / 0.5596 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.237e-05/0.1719, allocations: 0 / 0.5596 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.1719, allocations: 0 / 0.5596 GB, free: 3.062 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.003234/0.1751, allocations: 1.171 MB / 0.5607 GB, free: 1.895 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.431e-05/0.1751, allocations: 0 / 0.5607 GB, free: 1.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.1752, allocations: 4 kB / 0.5607 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.442e-05/0.1752, allocations: 0 / 0.5607 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.823e-05/0.1752, allocations: 7.984 kB / 0.5607 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-06/0.1752, allocations: 0 / 0.5607 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002177/0.1774, allocations: 1.038 MB / 0.5617 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.1774, allocations: 0 / 0.5617 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.431e-05/0.1775, allocations: 0 / 0.5617 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009171/0.1784, allocations: 451 kB / 0.5622 GB, free: 412 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1784, allocations: 3.984 kB / 0.5622 GB, free: 408 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1784, allocations: 0 / 0.5622 GB, free: 408 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1784, allocations: 0 / 0.5622 GB, free: 408 kB / 414.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.0006103/0.179, allocations: 442.8 kB / 0.5626 GB, free: 15.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.179, allocations: 8.031 kB / 0.5626 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.422e-05/0.1791, allocations: 4.938 kB / 0.5626 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.1792, allocations: 172.3 kB / 0.5628 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-06/0.1792, allocations: 384 / 0.5628 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.1792, allocations: 384 / 0.5628 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.1793, allocations: 37.95 kB / 0.5628 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1794, allocations: 0 / 0.5628 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.1794, allocations: 0 / 0.5628 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1794, allocations: 3.938 kB / 0.5628 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.127e-05/0.1794, allocations: 3.984 kB / 0.5628 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.1796, allocations: 149.7 kB / 0.563 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.434e-05/0.1796, allocations: 18.58 kB / 0.563 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.731e-05/0.1796, allocations: 4.859 kB / 0.563 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-06/0.1796, allocations: 0 / 0.563 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.036e-05/0.1797, allocations: 64.27 kB / 0.5631 GB, free: 15.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1797, allocations: 0 / 0.5631 GB, free: 15.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002144/0.1799, allocations: 71.33 kB / 0.5631 GB, free: 15.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.18, allocations: 81.23 kB / 0.5632 GB, free: 15.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.606e-05/0.18, allocations: 93.81 kB / 0.5633 GB, free: 15.05 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.1801, allocations: 25.7 kB / 0.5633 GB, free: 15.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.725e-05/0.1801, allocations: 80.14 kB / 0.5634 GB, free: 14.94 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.1801, allocations: 3.938 kB / 0.5634 GB, free: 14.94 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.1801, allocations: 17.72 kB / 0.5634 GB, free: 14.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1803, allocations: 314.8 kB / 0.5637 GB, free: 14.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-06/0.1803, allocations: 0 / 0.5637 GB, free: 14.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.083e-06/0.1803, allocations: 8 kB / 0.5637 GB, free: 14.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.078e-05/0.1804, allocations: 60.2 kB / 0.5638 GB, free: 14.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1804, allocations: 0 / 0.5638 GB, free: 14.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.611e-05/0.1804, allocations: 63.41 kB / 0.5638 GB, free: 14.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.1805, allocations: 41.62 kB / 0.5639 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1805, allocations: 0 / 0.5639 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1805, allocations: 0 / 0.5639 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1805, allocations: 0 / 0.5639 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1805, allocations: 0 / 0.5639 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.1805, allocations: 4.094 kB / 0.5639 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.1805, allocations: 0 / 0.5639 GB, free: 14.39 MB / 430.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.0001031/0.1806, allocations: 135.5 kB / 0.564 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/0.1807, allocations: 3.938 kB / 0.564 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.002e-05/0.1807, allocations: 11.05 kB / 0.564 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1807, allocations: 0 / 0.564 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1807, allocations: 3.984 kB / 0.564 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1807, allocations: 4 kB / 0.564 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.1808, allocations: 141.7 kB / 0.5642 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1808, allocations: 4 kB / 0.5642 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.485e-06/0.1808, allocations: 4 kB / 0.5642 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1808, allocations: 3.938 kB / 0.5642 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.1808, allocations: 0 / 0.5642 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1808, allocations: 7.938 kB / 0.5642 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1808, allocations: 3.938 kB / 0.5642 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.905e-05/0.1809, allocations: 86.83 kB / 0.5643 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.1809, allocations: 85.14 kB / 0.5644 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.181, allocations: 7.938 kB / 0.5644 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.181, allocations: 3.984 kB / 0.5644 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.181, allocations: 0 / 0.5644 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.181, allocations: 0 / 0.5644 GB, free: 13.79 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.522e-05/0.181, allocations: 79.28 kB / 0.5644 GB, free: 13.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.181, allocations: 0 / 0.5644 GB, free: 13.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005193/0.1815, allocations: 155.5 kB / 0.5646 GB, free: 13.56 MB / 430.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.0008205/0.1824, allocations: 379.9 kB / 0.5649 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001257/0.1825, allocations: 63.34 kB / 0.565 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1825, allocations: 4.062 kB / 0.565 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.951e-05/0.1825, allocations: 55.41 kB / 0.5651 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.1827, allocations: 0.9844 kB / 0.5651 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002252/0.1829, allocations: 114.8 kB / 0.5652 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.1832, allocations: 0.6729 MB / 0.5658 GB, free: 12.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.211e-05/0.1832, allocations: 7.438 kB / 0.5658 GB, free: 12.18 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1832, allocations: 0 / 0.5658 GB, free: 12.18 MB / 430.1 MB Notification: Performance of Templates: time 0.008042/0.1912, allocations: 3.927 MB / 0.5697 GB, free: 8.246 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.01621514488943]