Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001548/0.001548, allocations: 109.1 kB / 21.85 MB, free: 64 kB / 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.001783/0.001783, allocations: 216.3 kB / 25.13 MB, free: 3.586 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.444/1.444, allocations: 230.4 MB / 258.7 MB, free: 8.066 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2322/0.2322, allocations: 46.94 MB / 362 MB, free: 4.227 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003135/0.003135, allocations: 83.84 kB / 0.4978 GB, free: 7.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4023, allocations: 66.07 MB / 0.5623 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001699/0.404, allocations: 483 kB / 0.5628 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003781/0.4078, allocations: 2.45 MB / 0.5651 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.736e-05/0.4078, allocations: 0 / 0.5651 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.888e-06/0.4078, allocations: 4 kB / 0.5651 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.4078, allocations: 0 / 0.5651 GB, free: 1.324 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.00276/0.4106, allocations: 1.152 MB / 0.5663 GB, free: 176 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.907e-05/0.4106, allocations: 3.938 kB / 0.5663 GB, free: 172 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.29e-05/0.4107, allocations: 7.984 kB / 0.5663 GB, free: 164 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.609e-05/0.4107, allocations: 3.984 kB / 0.5663 GB, free: 160 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.918e-05/0.4107, allocations: 4 kB / 0.5663 GB, free: 156 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-06/0.4107, allocations: 0 / 0.5663 GB, free: 156 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001618/0.4123, allocations: 1.003 MB / 0.5673 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.676e-06/0.4123, allocations: 0 / 0.5673 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.435e-05/0.4123, allocations: 8 kB / 0.5673 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006128/0.413, allocations: 437.5 kB / 0.5677 GB, free: 14.72 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.413, allocations: 0 / 0.5677 GB, free: 14.72 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.413, allocations: 0 / 0.5677 GB, free: 14.72 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.413, allocations: 0 / 0.5677 GB, free: 14.72 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.0004467/0.4134, allocations: 367.3 kB / 0.568 GB, free: 14.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.4135, allocations: 8.031 kB / 0.5681 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.955e-05/0.4135, allocations: 0.9375 kB / 0.5681 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.4136, allocations: 110.5 kB / 0.5682 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.4136, allocations: 384 / 0.5682 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.4136, allocations: 4.312 kB / 0.5682 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.4137, allocations: 63.7 kB / 0.5682 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4137, allocations: 3.938 kB / 0.5682 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.4137, allocations: 3.984 kB / 0.5682 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.4137, allocations: 4 kB / 0.5682 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.403e-05/0.4138, allocations: 29.7 kB / 0.5683 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.4139, allocations: 120.7 kB / 0.5684 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.331e-05/0.414, allocations: 48.25 kB / 0.5684 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.945e-05/0.414, allocations: 30.56 kB / 0.5685 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.373e-06/0.414, allocations: 0 / 0.5685 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.496e-05/0.4141, allocations: 64.19 kB / 0.5685 GB, free: 13.72 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.4141, allocations: 4 kB / 0.5685 GB, free: 13.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001954/0.4143, allocations: 114.9 kB / 0.5686 GB, free: 13.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.4143, allocations: 85.09 kB / 0.5687 GB, free: 13.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.912e-05/0.4144, allocations: 93.81 kB / 0.5688 GB, free: 13.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.4144, allocations: 25.7 kB / 0.5688 GB, free: 13.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.138e-05/0.4144, allocations: 80.14 kB / 0.5689 GB, free: 13.26 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.336e-05/0.4145, allocations: 0 / 0.5689 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.155e-05/0.4145, allocations: 21.66 kB / 0.5689 GB, free: 13.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4146, allocations: 315 kB / 0.5692 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.163e-05/0.4147, allocations: 25.7 kB / 0.5692 GB, free: 12.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.085e-05/0.4147, allocations: 29.7 kB / 0.5693 GB, free: 12.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.107e-05/0.4148, allocations: 60.25 kB / 0.5693 GB, free: 12.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4148, allocations: 0 / 0.5693 GB, free: 12.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.479e-05/0.4148, allocations: 89.11 kB / 0.5694 GB, free: 12.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.4149, allocations: 37.64 kB / 0.5695 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.4149, allocations: 96 / 0.5695 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.4149, allocations: 4 kB / 0.5695 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.4149, allocations: 0 / 0.5695 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.4149, allocations: 0 / 0.5695 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.669e-05/0.4149, allocations: 7.922 kB / 0.5695 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.4149, allocations: 0 / 0.5695 GB, free: 12.62 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 9.415e-05/0.415, allocations: 135.5 kB / 0.5696 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.005e-05/0.415, allocations: 3.938 kB / 0.5696 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.04e-05/0.415, allocations: 3 kB / 0.5696 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.415, allocations: 4 kB / 0.5696 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.415, allocations: 7.938 kB / 0.5696 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.415, allocations: 0 / 0.5696 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.4152, allocations: 124.8 kB / 0.5697 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.4152, allocations: 0 / 0.5697 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.4152, allocations: 0 / 0.5697 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.4152, allocations: 7.938 kB / 0.5697 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.4152, allocations: 0 / 0.5697 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.4152, allocations: 0 / 0.5697 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4152, allocations: 3.938 kB / 0.5697 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.4153, allocations: 120.5 kB / 0.5699 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-06/0.4153, allocations: 0 / 0.5699 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.4153, allocations: 3.938 kB / 0.5699 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.4153, allocations: 0 / 0.5699 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.866e-05/0.4153, allocations: 7.938 kB / 0.5699 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.4153, allocations: 0 / 0.5699 GB, free: 12.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.723e-05/0.4154, allocations: 75.28 kB / 0.5699 GB, free: 12.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4154, allocations: 0 / 0.5699 GB, free: 12.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004658/0.4158, allocations: 159.6 kB / 0.5701 GB, free: 11.88 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.0007551/0.4166, allocations: 391.7 kB / 0.5705 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.4167, allocations: 114.8 kB / 0.5706 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4167, allocations: 0 / 0.5706 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.076e-05/0.4168, allocations: 85.11 kB / 0.5707 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.4169, allocations: 0 / 0.5707 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.4171, allocations: 110.7 kB / 0.5708 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.4174, allocations: 0.669 MB / 0.5714 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.4174, allocations: 0 / 0.5714 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.4174, allocations: 15.5 kB / 0.5714 GB, free: 10.4 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4174, allocations: 4 kB / 0.5714 GB, free: 10.4 MB / 414.1 MB Notification: Performance of Templates: time 0.008773/0.4262, allocations: 4.617 MB / 0.5759 GB, free: 5.781 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.212127838982269]