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.001324/0.001324, allocations: 117 kB / 19.13 MB, free: 3.922 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.001833/0.001833, allocations: 214.5 kB / 22.08 MB, free: 0.9727 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.501/1.501, allocations: 227.4 MB / 252.3 MB, free: 104 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.2303/0.2303, allocations: 46.16 MB / 351.8 MB, free: 14.39 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.002272/0.002272, allocations: 75.77 kB / 490.8 MB, free: 28.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1399, allocations: 62.44 MB / 0.5403 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001687/0.1417, allocations: 482.7 kB / 0.5408 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003719/0.1454, allocations: 2.412 MB / 0.5431 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.664e-05/0.1454, allocations: 0 / 0.5431 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.1455, allocations: 0 / 0.5431 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.74e-06/0.1455, allocations: 0 / 0.5431 GB, free: 1.402 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.002851/0.1484, allocations: 1.145 MB / 0.5442 GB, free: 264 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.661e-05/0.1484, allocations: 0 / 0.5442 GB, free: 264 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.796e-05/0.1485, allocations: 4 kB / 0.5442 GB, free: 260 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.807e-05/0.1485, allocations: 7.922 kB / 0.5442 GB, free: 252 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.928e-05/0.1485, allocations: 3.938 kB / 0.5443 GB, free: 248 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.1485, allocations: 0 / 0.5443 GB, free: 248 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.1503, allocations: 1.034 MB / 0.5453 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.1503, allocations: 4 kB / 0.5453 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.982e-05/0.1504, allocations: 4 kB / 0.5453 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006695/0.151, allocations: 451 kB / 0.5457 GB, free: 14.76 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.151, allocations: 0 / 0.5457 GB, free: 14.76 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1511, allocations: 0 / 0.5457 GB, free: 14.76 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1511, allocations: 0 / 0.5457 GB, free: 14.76 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.0005228/0.1516, allocations: 448.3 kB / 0.5461 GB, free: 14.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1516, allocations: 8.031 kB / 0.5461 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.1517, allocations: 4.922 kB / 0.5461 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.1518, allocations: 160.4 kB / 0.5463 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.1518, allocations: 4.375 kB / 0.5463 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.1519, allocations: 4.375 kB / 0.5463 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.152, allocations: 34 kB / 0.5463 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.152, allocations: 0 / 0.5463 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.152, allocations: 3.938 kB / 0.5463 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.152, allocations: 0 / 0.5463 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.152, allocations: 7.938 kB / 0.5463 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001657/0.1522, allocations: 141.7 kB / 0.5465 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.818e-05/0.1523, allocations: 26.61 kB / 0.5465 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.705e-05/0.1523, allocations: 8.844 kB / 0.5465 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-06/0.1523, allocations: 0 / 0.5465 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.248e-05/0.1524, allocations: 60.2 kB / 0.5466 GB, free: 13.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.1524, allocations: 0 / 0.5466 GB, free: 13.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001871/0.1526, allocations: 63.41 kB / 0.5466 GB, free: 13.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.1526, allocations: 85.11 kB / 0.5467 GB, free: 13.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.607e-05/0.1527, allocations: 97.92 kB / 0.5468 GB, free: 13.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.1527, allocations: 29.7 kB / 0.5468 GB, free: 13.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.546e-05/0.1528, allocations: 80.14 kB / 0.5469 GB, free: 13.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.1528, allocations: 0 / 0.5469 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/0.1528, allocations: 13.72 kB / 0.5469 GB, free: 13.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.153, allocations: 310.8 kB / 0.5472 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.848e-06/0.153, allocations: 0 / 0.5472 GB, free: 12.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-06/0.153, allocations: 3.938 kB / 0.5472 GB, free: 12.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.041e-05/0.1531, allocations: 68.33 kB / 0.5473 GB, free: 12.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1531, allocations: 0 / 0.5473 GB, free: 12.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.535e-05/0.1532, allocations: 71.33 kB / 0.5474 GB, free: 12.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.821e-05/0.1532, allocations: 33.64 kB / 0.5474 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1532, allocations: 0 / 0.5474 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.1533, allocations: 0 / 0.5474 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.1533, allocations: 4 kB / 0.5474 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1533, allocations: 0 / 0.5474 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.422e-05/0.1533, allocations: 0 / 0.5474 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.1533, allocations: 0 / 0.5474 GB, free: 12.75 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.000102/0.1534, allocations: 147.6 kB / 0.5475 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.1534, allocations: 3.938 kB / 0.5475 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-06/0.1534, allocations: 3.125 kB / 0.5475 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.1535, allocations: 0 / 0.5475 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1535, allocations: 0 / 0.5475 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1535, allocations: 0 / 0.5475 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.1536, allocations: 145.7 kB / 0.5477 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1536, allocations: 7.922 kB / 0.5477 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1536, allocations: 0 / 0.5477 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1536, allocations: 7.938 kB / 0.5477 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.1536, allocations: 0 / 0.5477 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.1536, allocations: 0 / 0.5477 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1536, allocations: 0 / 0.5477 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.1538, allocations: 94.77 kB / 0.5478 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.394e-05/0.1538, allocations: 77.11 kB / 0.5479 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.1538, allocations: 7.938 kB / 0.5479 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.1539, allocations: 0 / 0.5479 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.1539, allocations: 4.031 kB / 0.5479 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.1539, allocations: 0 / 0.5479 GB, free: 12.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.759e-05/0.1539, allocations: 75.28 kB / 0.5479 GB, free: 12.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1539, allocations: 0 / 0.5479 GB, free: 12.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000459/0.1544, allocations: 159.5 kB / 0.5481 GB, free: 11.93 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.0008099/0.1552, allocations: 392.2 kB / 0.5485 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.1553, allocations: 63.34 kB / 0.5485 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1554, allocations: 0 / 0.5485 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.288e-05/0.1554, allocations: 63.39 kB / 0.5486 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.1555, allocations: 2.875 kB / 0.5486 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002179/0.1558, allocations: 110.8 kB / 0.5487 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.1561, allocations: 0.669 MB / 0.5493 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.314e-05/0.1561, allocations: 7.438 kB / 0.5494 GB, free: 10.54 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1561, allocations: 0 / 0.5494 GB, free: 10.54 MB / 414.1 MB Notification: Performance of Templates: time 0.007184/0.1633, allocations: 3.912 MB / 0.5532 GB, free: 6.625 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.501282732002437]