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.001833/0.001833, allocations: 105.4 kB / 19.81 MB, free: 2.516 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.001442/0.001442, allocations: 215.7 kB / 22.99 MB, free: 5.605 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.489/1.489, allocations: 230.2 MB / 256.2 MB, free: 8.555 MB / 206.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.2546/0.2546, allocations: 46.91 MB / 359.4 MB, free: 4.871 MB / 286.1 MB " [Timeout remaining time 179] 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.002489/0.002489, allocations: 75.88 kB / 0.4946 GB, free: 8.516 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3997, allocations: 65.99 MB / 0.559 GB, free: 5.055 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001882/0.4016, allocations: 480 kB / 0.5595 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004228/0.4058, allocations: 2.45 MB / 0.5619 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.059e-05/0.4059, allocations: 4 kB / 0.5619 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.153e-05/0.4059, allocations: 3.938 kB / 0.5619 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.4059, allocations: 0 / 0.5619 GB, free: 2.109 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.003298/0.4092, allocations: 1.151 MB / 0.563 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.329e-05/0.4093, allocations: 7.938 kB / 0.563 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.655e-05/0.4093, allocations: 0 / 0.563 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.737e-05/0.4093, allocations: 0 / 0.563 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.896e-05/0.4094, allocations: 7.984 kB / 0.563 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.4094, allocations: 0 / 0.563 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.4112, allocations: 1.034 MB / 0.564 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.4112, allocations: 0 / 0.564 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.124e-05/0.4112, allocations: 0 / 0.564 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006941/0.4119, allocations: 445.5 kB / 0.5645 GB, free: 15.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4119, allocations: 4 kB / 0.5645 GB, free: 15.47 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4119, allocations: 0 / 0.5645 GB, free: 15.47 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.4119, allocations: 0 / 0.5645 GB, free: 15.47 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.000535/0.4125, allocations: 447.1 kB / 0.5649 GB, free: 14.98 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4125, allocations: 8.031 kB / 0.5649 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.4125, allocations: 0.9375 kB / 0.5649 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.4127, allocations: 172.3 kB / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.4127, allocations: 384 / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.4127, allocations: 4.312 kB / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.4128, allocations: 45.98 kB / 0.5651 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.4129, allocations: 0 / 0.5651 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.4129, allocations: 0 / 0.5651 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4129, allocations: 0 / 0.5651 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.779e-05/0.4129, allocations: 0 / 0.5651 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.4131, allocations: 149.7 kB / 0.5653 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.979e-05/0.4131, allocations: 22.52 kB / 0.5653 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.842e-05/0.4131, allocations: 8.844 kB / 0.5653 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.029e-06/0.4131, allocations: 4 kB / 0.5653 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.968e-05/0.4132, allocations: 64.27 kB / 0.5654 GB, free: 14.39 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.4132, allocations: 0 / 0.5654 GB, free: 14.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000202/0.4134, allocations: 63.41 kB / 0.5654 GB, free: 14.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.4135, allocations: 81.09 kB / 0.5655 GB, free: 14.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.623e-05/0.4135, allocations: 93.81 kB / 0.5656 GB, free: 14.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.4136, allocations: 25.7 kB / 0.5656 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.83e-05/0.4136, allocations: 80.27 kB / 0.5657 GB, free: 14.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.4136, allocations: 4 kB / 0.5657 GB, free: 14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.4137, allocations: 17.66 kB / 0.5657 GB, free: 13.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.4138, allocations: 310.8 kB / 0.566 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.402e-05/0.4138, allocations: 4 kB / 0.566 GB, free: 13.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.284e-06/0.4138, allocations: 4 kB / 0.566 GB, free: 13.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.597e-05/0.4139, allocations: 56.27 kB / 0.5661 GB, free: 13.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.4139, allocations: 0 / 0.5661 GB, free: 13.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.575e-05/0.414, allocations: 71.39 kB / 0.5661 GB, free: 13.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.506e-05/0.414, allocations: 37.64 kB / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.414, allocations: 4 kB / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.414, allocations: 0 / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.414, allocations: 0 / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.4141, allocations: 0 / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.458e-05/0.4141, allocations: 3.938 kB / 0.5662 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.4141, allocations: 0 / 0.5662 GB, free: 13.46 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.0001015/0.4142, allocations: 143.5 kB / 0.5663 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.092e-05/0.4142, allocations: 7.969 kB / 0.5663 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.237e-06/0.4142, allocations: 3.125 kB / 0.5663 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.4142, allocations: 0 / 0.5663 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.4142, allocations: 3.938 kB / 0.5663 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.4142, allocations: 4 kB / 0.5663 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.4143, allocations: 145.7 kB / 0.5665 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4143, allocations: 0 / 0.5665 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.4143, allocations: 0 / 0.5665 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.4143, allocations: 3.938 kB / 0.5665 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.4143, allocations: 0 / 0.5665 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.4143, allocations: 4 kB / 0.5665 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4143, allocations: 4 kB / 0.5665 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.4145, allocations: 86.83 kB / 0.5666 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.424e-05/0.4145, allocations: 81.11 kB / 0.5666 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.4145, allocations: 3.938 kB / 0.5667 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.106e-06/0.4145, allocations: 0 / 0.5667 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.288e-05/0.4145, allocations: 3.938 kB / 0.5667 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.4145, allocations: 0 / 0.5667 GB, free: 12.87 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.028e-05/0.4146, allocations: 83.31 kB / 0.5667 GB, free: 12.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4146, allocations: 0 / 0.5667 GB, free: 12.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004821/0.4151, allocations: 159.5 kB / 0.5669 GB, free: 12.63 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.0008306/0.4159, allocations: 393.8 kB / 0.5673 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.416, allocations: 59.41 kB / 0.5673 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.416, allocations: 0 / 0.5673 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.348e-05/0.416, allocations: 59.39 kB / 0.5674 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.4162, allocations: 2.031 kB / 0.5674 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002086/0.4164, allocations: 85.12 kB / 0.5675 GB, free: 11.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.4167, allocations: 0.6729 MB / 0.5681 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.404e-06/0.4167, allocations: 0 / 0.5681 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.485e-05/0.4168, allocations: 11.38 kB / 0.5681 GB, free: 11.28 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4168, allocations: 0 / 0.5681 GB, free: 11.28 MB / 414.1 MB Notification: Performance of Templates: time 0.008926/0.4257, allocations: 4.618 MB / 0.5726 GB, free: 6.652 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.4058818919584155]