Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2399/0.2399, allocations: 46.91 MB / 357.8 MB, free: 10.32 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 63.91 kB / 0.492 GB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1692, allocations: 65.99 MB / 0.5565 GB, free: 5.352 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001921/0.1711, allocations: 478.8 kB / 0.5569 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003946/0.175, allocations: 2.422 MB / 0.5593 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.967e-05/0.1751, allocations: 0 / 0.5593 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.1751, allocations: 0 / 0.5593 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.243e-06/0.1751, allocations: 0 / 0.5593 GB, free: 2.441 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.003118/0.1782, allocations: 1.16 MB / 0.5604 GB, free: 1.281 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.086e-05/0.1783, allocations: 8 kB / 0.5604 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.355e-05/0.1783, allocations: 0 / 0.5604 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.708e-05/0.1783, allocations: 0 / 0.5604 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.567e-05/0.1784, allocations: 4 kB / 0.5605 GB, free: 1.27 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.823e-06/0.1784, allocations: 0 / 0.5605 GB, free: 1.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001794/0.1802, allocations: 1.034 MB / 0.5615 GB, free: 240 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.201e-05/0.1802, allocations: 0 / 0.5615 GB, free: 240 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.684e-05/0.1802, allocations: 7.984 kB / 0.5615 GB, free: 232 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007178/0.1809, allocations: 447 kB / 0.5619 GB, free: 15.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1809, allocations: 0 / 0.5619 GB, free: 15.79 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1809, allocations: 4 kB / 0.5619 GB, free: 15.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1809, allocations: 0 / 0.5619 GB, free: 15.79 MB / 430.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.0005989/0.1815, allocations: 452.3 kB / 0.5623 GB, free: 15.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.1816, allocations: 8.031 kB / 0.5623 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.59e-05/0.1816, allocations: 0.9375 kB / 0.5623 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.1818, allocations: 164.4 kB / 0.5625 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1818, allocations: 4.359 kB / 0.5625 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.1818, allocations: 4.375 kB / 0.5625 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.1819, allocations: 37.95 kB / 0.5625 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1819, allocations: 4 kB / 0.5625 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.1819, allocations: 0 / 0.5625 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1819, allocations: 0 / 0.5625 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.049e-05/0.182, allocations: 0 / 0.5625 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001627/0.1821, allocations: 141.7 kB / 0.5627 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.452e-05/0.1822, allocations: 26.59 kB / 0.5627 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.759e-05/0.1822, allocations: 4.859 kB / 0.5627 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.1822, allocations: 4 kB / 0.5627 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.163e-05/0.1823, allocations: 68.2 kB / 0.5628 GB, free: 14.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.1823, allocations: 0 / 0.5628 GB, free: 14.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002138/0.1825, allocations: 59.41 kB / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.1826, allocations: 81.09 kB / 0.5629 GB, free: 14.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.331e-05/0.1826, allocations: 97.81 kB / 0.563 GB, free: 14.44 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.1826, allocations: 25.7 kB / 0.563 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.1827, allocations: 80.27 kB / 0.5631 GB, free: 14.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.1827, allocations: 4 kB / 0.5631 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.1827, allocations: 13.72 kB / 0.5631 GB, free: 14.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1829, allocations: 310.8 kB / 0.5634 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.05e-05/0.1829, allocations: 0 / 0.5634 GB, free: 13.99 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-06/0.1829, allocations: 0 / 0.5634 GB, free: 13.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.984e-05/0.183, allocations: 68.2 kB / 0.5635 GB, free: 13.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.183, allocations: 0 / 0.5635 GB, free: 13.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.829e-05/0.183, allocations: 67.45 kB / 0.5635 GB, free: 13.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.1831, allocations: 33.64 kB / 0.5636 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1831, allocations: 4 kB / 0.5636 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1831, allocations: 0 / 0.5636 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1831, allocations: 0 / 0.5636 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.1831, allocations: 0 / 0.5636 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.858e-05/0.1831, allocations: 3.938 kB / 0.5636 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.1831, allocations: 3.938 kB / 0.5636 GB, free: 13.78 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.0001115/0.1832, allocations: 141.7 kB / 0.5637 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/0.1833, allocations: 7.969 kB / 0.5637 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.006e-06/0.1833, allocations: 3.125 kB / 0.5637 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.1833, allocations: 0 / 0.5637 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1833, allocations: 0 / 0.5637 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1833, allocations: 4 kB / 0.5637 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.1834, allocations: 149.7 kB / 0.5639 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.1834, allocations: 0 / 0.5639 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.807e-06/0.1834, allocations: 3.938 kB / 0.5639 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1834, allocations: 3.938 kB / 0.5639 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1834, allocations: 0 / 0.5639 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.1834, allocations: 4 kB / 0.5639 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1834, allocations: 4 kB / 0.5639 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001151/0.1835, allocations: 94.8 kB / 0.564 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.058e-05/0.1836, allocations: 81.11 kB / 0.5641 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.1836, allocations: 7.938 kB / 0.5641 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-06/0.1836, allocations: 0 / 0.5641 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.102e-05/0.1836, allocations: 0 / 0.5641 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.1836, allocations: 0 / 0.5641 GB, free: 13.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.922e-05/0.1837, allocations: 79.31 kB / 0.5642 GB, free: 13.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1837, allocations: 4 kB / 0.5642 GB, free: 13.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005518/0.1842, allocations: 155.5 kB / 0.5643 GB, free: 12.95 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.0009137/0.1851, allocations: 390.7 kB / 0.5647 GB, free: 12.56 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001249/0.1853, allocations: 59.34 kB / 0.5647 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1853, allocations: 0 / 0.5647 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.899e-05/0.1853, allocations: 59.39 kB / 0.5648 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.1854, allocations: 0 / 0.5648 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002595/0.1857, allocations: 114.8 kB / 0.5649 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.1861, allocations: 0.6768 MB / 0.5656 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.877e-05/0.1861, allocations: 7.438 kB / 0.5656 GB, free: 11.56 MB / 430.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1861, allocations: 0 / 0.5656 GB, free: 11.56 MB / 430.1 MB Notification: Performance of Templates: time 0.007885/0.194, allocations: 3.92 MB / 0.5694 GB, free: 7.637 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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: 7.494240172003629]