Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.001811/0.001811, allocations: 120.8 kB / 18.45 MB, free: 4.59 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.002022/0.002022, allocations: 201 kB / 21.4 MB, free: 1.645 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.492/1.492, allocations: 227.4 MB / 251.6 MB, free: 96 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2587/0.2587, allocations: 46.17 MB / 351.1 MB, free: 14.29 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003015/0.003015, allocations: 80.78 kB / 490.1 MB, free: 28.08 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1637, allocations: 62.44 MB / 0.5396 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001686/0.1654, allocations: 494.3 kB / 0.5401 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003923/0.1693, allocations: 2.401 MB / 0.5424 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.789e-05/0.1694, allocations: 0 / 0.5424 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.211e-05/0.1694, allocations: 4 kB / 0.5425 GB, free: 1.387 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.113e-06/0.1694, allocations: 0 / 0.5425 GB, free: 1.387 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.003166/0.1726, allocations: 1.151 MB / 0.5436 GB, free: 240 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.917e-05/0.1727, allocations: 0 / 0.5436 GB, free: 240 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.746e-05/0.1727, allocations: 0 / 0.5436 GB, free: 240 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.703e-05/0.1727, allocations: 7.938 kB / 0.5436 GB, free: 232 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.184e-05/0.1728, allocations: 0 / 0.5436 GB, free: 232 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-06/0.1728, allocations: 0 / 0.5436 GB, free: 232 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.1746, allocations: 1.038 MB / 0.5446 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.075e-05/0.1747, allocations: 3.984 kB / 0.5446 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.147e-05/0.1747, allocations: 0 / 0.5446 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007222/0.1754, allocations: 447 kB / 0.545 GB, free: 14.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1754, allocations: 0 / 0.545 GB, free: 14.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1754, allocations: 4 kB / 0.545 GB, free: 14.74 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1755, allocations: 0 / 0.545 GB, free: 14.74 MB / 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.0005012/0.176, allocations: 444.3 kB / 0.5455 GB, free: 14.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.176, allocations: 16.03 kB / 0.5455 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.176, allocations: 0.9375 kB / 0.5455 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.1762, allocations: 160.4 kB / 0.5456 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.1762, allocations: 384 / 0.5456 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-06/0.1762, allocations: 384 / 0.5456 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.1763, allocations: 38 kB / 0.5457 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1763, allocations: 3.984 kB / 0.5457 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.323e-06/0.1764, allocations: 11.81 kB / 0.5457 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1764, allocations: 0 / 0.5457 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.1e-05/0.1764, allocations: 4 kB / 0.5457 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.1766, allocations: 149.7 kB / 0.5458 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.387e-05/0.1766, allocations: 14.58 kB / 0.5458 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.919e-05/0.1766, allocations: 12.94 kB / 0.5459 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.1767, allocations: 0 / 0.5459 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.1767, allocations: 60.2 kB / 0.5459 GB, free: 13.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 6.92e-07/0.1767, allocations: 0 / 0.5459 GB, free: 13.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001798/0.1769, allocations: 71.34 kB / 0.546 GB, free: 13.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.177, allocations: 77.11 kB / 0.546 GB, free: 13.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.086e-05/0.177, allocations: 97.8 kB / 0.5461 GB, free: 13.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.1771, allocations: 25.7 kB / 0.5462 GB, free: 13.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.734e-05/0.1771, allocations: 84.14 kB / 0.5462 GB, free: 13.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.1771, allocations: 0 / 0.5462 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.1772, allocations: 9.719 kB / 0.5463 GB, free: 13.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1773, allocations: 310.8 kB / 0.5466 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.174e-05/0.1774, allocations: 12.12 kB / 0.5466 GB, free: 12.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.899e-06/0.1774, allocations: 0 / 0.5466 GB, free: 12.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.548e-05/0.1774, allocations: 68.2 kB / 0.5466 GB, free: 12.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1775, allocations: 0 / 0.5466 GB, free: 12.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.788e-05/0.1775, allocations: 63.39 kB / 0.5467 GB, free: 12.78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.1776, allocations: 33.64 kB / 0.5467 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1776, allocations: 0 / 0.5467 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1776, allocations: 0 / 0.5467 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.1776, allocations: 0 / 0.5467 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1776, allocations: 4.094 kB / 0.5467 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.775e-05/0.1777, allocations: 4 kB / 0.5467 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.1777, allocations: 0 / 0.5467 GB, free: 12.73 MB / 414.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.0001748/0.1778, allocations: 139.5 kB / 0.5469 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.118e-05/0.1779, allocations: 7.938 kB / 0.5469 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.434e-06/0.1779, allocations: 3.125 kB / 0.5469 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.1779, allocations: 0 / 0.5469 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1779, allocations: 0 / 0.5469 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1779, allocations: 0 / 0.5469 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.178, allocations: 149.7 kB / 0.547 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.178, allocations: 7.922 kB / 0.547 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.178, allocations: 4 kB / 0.547 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.178, allocations: 3.938 kB / 0.547 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.1781, allocations: 0 / 0.547 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.1781, allocations: 3.938 kB / 0.547 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1781, allocations: 0 / 0.547 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.1782, allocations: 94.77 kB / 0.5471 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.81e-05/0.1783, allocations: 81.14 kB / 0.5472 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1783, allocations: 3.938 kB / 0.5472 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.894e-06/0.1783, allocations: 0 / 0.5472 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.1783, allocations: 4 kB / 0.5472 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1783, allocations: 0 / 0.5472 GB, free: 12.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.483e-05/0.1784, allocations: 75.28 kB / 0.5473 GB, free: 12.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1784, allocations: 0 / 0.5473 GB, free: 12.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004476/0.1788, allocations: 163.5 kB / 0.5474 GB, free: 11.9 MB / 414.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.0007867/0.1796, allocations: 381.4 kB / 0.5478 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.875e-05/0.1797, allocations: 59.34 kB / 0.5479 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.1797, allocations: 4.062 kB / 0.5479 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.961e-05/0.1798, allocations: 63.39 kB / 0.5479 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1799, allocations: 6.188 kB / 0.5479 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001752/0.1801, allocations: 77.06 kB / 0.548 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.1804, allocations: 0.6768 MB / 0.5487 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.931e-06/0.1805, allocations: 0 / 0.5487 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.1805, allocations: 7.438 kB / 0.5487 GB, free: 10.55 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1805, allocations: 0 / 0.5487 GB, free: 10.55 MB / 414.1 MB Notification: Performance of Templates: time 0.01036/0.1908, allocations: 4.591 MB / 0.5532 GB, free: 5.957 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 5.308209554292262]