Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.0009812/0.0009812, allocations: 81.81 kB / 21.42 MB, free: 3.066 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.001284/0.001284, allocations: 162.2 kB / 24.82 MB, free: 9.191 MB / 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.136/1.136, allocations: 177 MB / 205.1 MB, free: 5.48 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.3035/0.3035, allocations: 34.86 MB / 296.6 MB, free: 0.5078 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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 379.2 MB, free: 1.887 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.068e-05, allocations: 2.312 kB / 379.2 MB, free: 1.883 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00112/0.001141, allocations: 492.4 kB / 379.7 MB, free: 1.402 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.00419, allocations: 2.334 MB / 382 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.479e-05/0.004215, allocations: 0 / 382 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.00423, allocations: 0 / 382 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.624e-06/0.004237, allocations: 0 / 382 MB, free: 15.05 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.002209/0.006446, allocations: 1.125 MB / 383.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.616e-05/0.006492, allocations: 3.984 kB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.931e-05/0.006522, allocations: 4 kB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.882e-05/0.00655, allocations: 0 / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.068e-05/0.006571, allocations: 0 / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.006578, allocations: 0 / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001256/0.007834, allocations: 0.9986 MB / 384.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.227e-06/0.007844, allocations: 0 / 384.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.565e-05/0.007859, allocations: 4 kB / 384.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006807/0.00854, allocations: 0.5339 MB / 384.7 MB, free: 12.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.008542, allocations: 0 / 384.7 MB, free: 12.37 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.008543, allocations: 0 / 384.7 MB, free: 12.37 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.008548, allocations: 0 / 384.7 MB, free: 12.37 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.0004101/0.008958, allocations: 473.2 kB / 385.1 MB, free: 11.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.009, allocations: 11.97 kB / 385.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.532e-05/0.009025, allocations: 0.9375 kB / 385.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.077e-05/0.009086, allocations: 112.6 kB / 385.3 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.009094, allocations: 4.375 kB / 385.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.492e-06/0.009101, allocations: 384 / 385.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.554e-05/0.009177, allocations: 59.95 kB / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.009183, allocations: 192 / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-06/0.00919, allocations: 384 / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.009196, allocations: 3.938 kB / 385.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.779e-05/0.009214, allocations: 29.7 kB / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.821e-05/0.009292, allocations: 89.27 kB / 385.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.436e-05/0.009337, allocations: 64.72 kB / 385.5 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.806e-05/0.009355, allocations: 37.38 kB / 385.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-06/0.009358, allocations: 4 kB / 385.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.009395, allocations: 63.16 kB / 385.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.009396, allocations: 0 / 385.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001489/0.009545, allocations: 114.8 kB / 385.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.009581, allocations: 81.05 kB / 385.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.74e-05/0.009629, allocations: 142.2 kB / 385.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.009637, allocations: 25.7 kB / 386 MB, free: 10.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.405e-05/0.009671, allocations: 130.9 kB / 386.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.00969, allocations: 4.344 kB / 386.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.009711, allocations: 15.38 kB / 386.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.009868, allocations: 0.4924 MB / 386.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.589e-05/0.009893, allocations: 29.7 kB / 386.6 MB, free: 10.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.669e-05/0.00991, allocations: 25.7 kB / 386.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.544e-05/0.009966, allocations: 67.08 kB / 386.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.009967, allocations: 0 / 386.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.252e-05/0.01004, allocations: 93 kB / 386.8 MB, free: 9.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/0.01007, allocations: 29.7 kB / 386.8 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.01008, allocations: 0 / 386.8 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.01009, allocations: 3.984 kB / 386.8 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.894e-06/0.01009, allocations: 8.094 kB / 386.8 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.846e-06/0.01009, allocations: 0 / 386.8 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.145e-05/0.01011, allocations: 3.938 kB / 386.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.01011, allocations: 4 kB / 386.9 MB, free: 9.887 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 8.253e-05/0.0102, allocations: 182.3 kB / 387 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-06/0.0102, allocations: 0 / 387 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.295e-05/0.01021, allocations: 6.938 kB / 387 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.01022, allocations: 0 / 387 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.01022, allocations: 0 / 387 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01022, allocations: 4 kB / 387 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.595e-05/0.01029, allocations: 97.19 kB / 387.1 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.01029, allocations: 4 kB / 387.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.01029, allocations: 0 / 387.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.81e-07/0.01029, allocations: 0 / 387.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.0103, allocations: 8 kB / 387.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.0103, allocations: 0 / 387.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.0103, allocations: 0 / 387.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.953e-05/0.0104, allocations: 135.7 kB / 387.3 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.829e-06/0.0104, allocations: 0 / 387.3 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.01042, allocations: 4 kB / 387.3 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.318e-06/0.01042, allocations: 0 / 387.3 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.01043, allocations: 4.031 kB / 387.3 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.01043, allocations: 0 / 387.3 MB, free: 9.375 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.763e-05/0.01047, allocations: 119.2 kB / 387.4 MB, free: 9.258 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01047, allocations: 0 / 387.4 MB, free: 9.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007284/0.0112, allocations: 159.5 kB / 387.6 MB, free: 9.102 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.000661/0.01186, allocations: 435.8 kB / 388 MB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.01197, allocations: 114.5 kB / 388.1 MB, free: 8.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01197, allocations: 0 / 388.1 MB, free: 8.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.749e-05/0.01201, allocations: 92.73 kB / 388.2 MB, free: 8.418 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001004/0.01211, allocations: 11.92 kB / 388.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001854/0.01229, allocations: 117.8 kB / 388.3 MB, free: 8.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.245e-05/0.01233, allocations: 51.38 kB / 388.4 MB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.612e-06/0.01233, allocations: 0 / 388.4 MB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.401e-05/0.01239, allocations: 78.19 kB / 388.4 MB, free: 8.105 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01239, allocations: 0 / 388.4 MB, free: 8.105 MB / 362.7 MB Notification: Performance of Templates: time 0.007788/0.02018, allocations: 6.089 MB / 394.5 MB, free: 2.012 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.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.3751667947508395]