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.001516/0.001516, allocations: 95.5 kB / 21.2 MB, free: 3.367 MB / 18.57 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.001811/0.001811, allocations: 160.5 kB / 24.56 MB, free: 12 kB / 18.57 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.009/1.009, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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.3046/0.3046, allocations: 34.86 MB / 296.3 MB, free: 0.5547 MB / 266.7 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 1.893e-06/1.893e-06, allocations: 0 / 378.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.766e-05/2.956e-05, allocations: 2.312 kB / 378.7 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001004/0.001034, allocations: 491.3 kB / 379.2 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.003823, allocations: 2.361 MB / 381.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.768e-05/0.00386, allocations: 0 / 381.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.49e-05/0.003885, allocations: 0 / 381.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 1.008e-05/0.003895, allocations: 0 / 381.6 MB, free: 15.3 MB / 362.7 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.002102/0.005997, allocations: 1.121 MB / 382.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.072e-05/0.006048, allocations: 4 kB / 382.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.497e-05/0.006083, allocations: 0 / 382.7 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.666e-05/0.006109, allocations: 4 kB / 382.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.799e-05/0.006137, allocations: 7.984 kB / 382.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.265e-06/0.006146, allocations: 0 / 382.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.007235, allocations: 0.9908 MB / 383.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.007244, allocations: 4 kB / 383.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.925e-05/0.007264, allocations: 3.984 kB / 383.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005355/0.007799, allocations: 0.5377 MB / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.007802, allocations: 0 / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.007802, allocations: 0 / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.007806, allocations: 0 / 384.2 MB, free: 12.62 MB / 362.7 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.0003936/0.0082, allocations: 465.2 kB / 384.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.008247, allocations: 12.03 kB / 384.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.008288, allocations: 0.9375 kB / 384.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.604e-05/0.008354, allocations: 116.6 kB / 384.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.008366, allocations: 4.312 kB / 384.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-06/0.008374, allocations: 8.375 kB / 384.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.008476, allocations: 55.91 kB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.008487, allocations: 192 / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.008499, allocations: 4.375 kB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.008511, allocations: 3.938 kB / 384.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.273e-05/0.008534, allocations: 25.7 kB / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001124/0.008646, allocations: 112.6 kB / 385 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.977e-05/0.008696, allocations: 52.75 kB / 385.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.288e-05/0.008719, allocations: 41.48 kB / 385.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-06/0.008725, allocations: 4 kB / 385.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.009056, allocations: 59.09 kB / 385.2 MB, free: 11.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.009057, allocations: 3.938 kB / 385.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001793/0.009236, allocations: 114.8 kB / 385.3 MB, free: 11.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.009279, allocations: 85.05 kB / 385.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.831e-05/0.009328, allocations: 146.2 kB / 385.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.009338, allocations: 25.7 kB / 385.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.739e-05/0.009375, allocations: 126.9 kB / 385.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.009394, allocations: 352 / 385.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.541e-05/0.009419, allocations: 19.38 kB / 385.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.009542, allocations: 496.2 kB / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.096e-05/0.009563, allocations: 29.69 kB / 386.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.298e-05/0.009576, allocations: 29.7 kB / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.794e-05/0.009624, allocations: 71.03 kB / 386.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.009626, allocations: 0 / 386.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.36e-05/0.00969, allocations: 93.05 kB / 386.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.009719, allocations: 29.7 kB / 386.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.009726, allocations: 0 / 386.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.009741, allocations: 0 / 386.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.699e-06/0.009746, allocations: 96 / 386.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.009754, allocations: 7.938 kB / 386.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.068e-05/0.009765, allocations: 4 kB / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.00977, allocations: 0 / 386.4 MB, free: 10.11 MB / 362.7 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 6.987e-05/0.00984, allocations: 182.3 kB / 386.6 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.569e-06/0.009845, allocations: 4 kB / 386.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.408e-06/0.009854, allocations: 6.984 kB / 386.6 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.009856, allocations: 3.938 kB / 386.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.009861, allocations: 0 / 386.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.009864, allocations: 3.938 kB / 386.6 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.524e-05/0.00992, allocations: 112.6 kB / 386.7 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.00992, allocations: 4 kB / 386.7 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-07/0.00992, allocations: 0 / 386.7 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.01e-07/0.009921, allocations: 0 / 386.7 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.009928, allocations: 0 / 386.7 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.81e-07/0.009929, allocations: 0 / 386.7 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.009931, allocations: 4 kB / 386.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.625e-05/0.01002, allocations: 131.8 kB / 386.9 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.01002, allocations: 0 / 386.9 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.01003, allocations: 0 / 386.9 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.132e-06/0.01004, allocations: 4 kB / 386.9 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.01006, allocations: 8.016 kB / 386.9 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.01006, allocations: 4 kB / 386.9 MB, free: 9.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.07e-05/0.01009, allocations: 123.1 kB / 387 MB, free: 9.449 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01009, allocations: 0 / 387 MB, free: 9.449 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003316/0.01042, allocations: 159.5 kB / 387.2 MB, free: 9.293 MB / 362.7 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.0005667/0.01099, allocations: 432.1 kB / 387.6 MB, free: 8.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.01109, allocations: 118.5 kB / 387.7 MB, free: 8.723 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01109, allocations: 0 / 387.7 MB, free: 8.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.952e-05/0.01113, allocations: 88.8 kB / 387.8 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.011e-05/0.01122, allocations: 8 kB / 387.8 MB, free: 8.605 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000183/0.0114, allocations: 109.8 kB / 387.9 MB, free: 8.461 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.538e-05/0.01144, allocations: 59.34 kB / 388 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.871e-06/0.01145, allocations: 0 / 388 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.357e-05/0.01146, allocations: 8.5 kB / 388 MB, free: 8.375 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.01146, allocations: 0 / 388 MB, free: 8.375 MB / 362.7 MB Notification: Performance of Templates: time 0.009559/0.02102, allocations: 7.486 MB / 395.5 MB, free: 0.8828 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.345955590251833]