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.001915/0.001915, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.002022/0.002022, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.476/1.476, allocations: 230.2 MB / 257.8 MB, free: 8.512 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.2446/0.2446, allocations: 46.89 MB / 361.1 MB, free: 4.645 MB / 286.1 MB " [Timeout remaining time 179] 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.00233/0.00233, allocations: 83.86 kB / 0.4967 GB, free: 7.859 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.3988, allocations: 65.98 MB / 0.5612 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002082/0.4009, allocations: 479.4 kB / 0.5616 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004422/0.4053, allocations: 2.45 MB / 0.564 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.378e-05/0.4054, allocations: 0 / 0.564 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.775e-05/0.4054, allocations: 0 / 0.564 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.556e-06/0.4054, allocations: 0 / 0.564 GB, free: 2.133 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.00324/0.4086, allocations: 1.159 MB / 0.5651 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.767e-05/0.4087, allocations: 0 / 0.5651 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.426e-05/0.4088, allocations: 4 kB / 0.5651 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.883e-05/0.4088, allocations: 0 / 0.5651 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.932e-05/0.4088, allocations: 0 / 0.5651 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.767e-06/0.4088, allocations: 0 / 0.5651 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00183/0.4107, allocations: 1.038 MB / 0.5662 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-06/0.4107, allocations: 4 kB / 0.5662 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.539e-05/0.4107, allocations: 7.984 kB / 0.5662 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006635/0.4114, allocations: 437.9 kB / 0.5666 GB, free: 15.49 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.4114, allocations: 11.94 kB / 0.5666 GB, free: 15.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4114, allocations: 0 / 0.5666 GB, free: 15.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.4114, allocations: 0 / 0.5666 GB, free: 15.48 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.0006107/0.412, allocations: 436.4 kB / 0.567 GB, free: 15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.412, allocations: 12.03 kB / 0.567 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.419e-05/0.4121, allocations: 4.875 kB / 0.567 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.4122, allocations: 168.4 kB / 0.5672 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.4122, allocations: 384 / 0.5672 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.4123, allocations: 384 / 0.5672 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.4124, allocations: 34.02 kB / 0.5672 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.4124, allocations: 3.938 kB / 0.5672 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.948e-06/0.4124, allocations: 0 / 0.5672 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.4124, allocations: 0 / 0.5672 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.405e-05/0.4124, allocations: 4 kB / 0.5672 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001905/0.4126, allocations: 149.7 kB / 0.5674 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.335e-05/0.4127, allocations: 22.52 kB / 0.5674 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.838e-05/0.4127, allocations: 8.953 kB / 0.5674 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.866e-06/0.4127, allocations: 0 / 0.5674 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.563e-05/0.4128, allocations: 60.2 kB / 0.5675 GB, free: 14.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.4128, allocations: 0 / 0.5675 GB, free: 14.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000213/0.413, allocations: 71.33 kB / 0.5675 GB, free: 14.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.413, allocations: 77.23 kB / 0.5676 GB, free: 14.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.23e-05/0.4131, allocations: 97.81 kB / 0.5677 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.4131, allocations: 25.7 kB / 0.5677 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/0.4132, allocations: 84.14 kB / 0.5678 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.4132, allocations: 3.938 kB / 0.5678 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.4132, allocations: 9.719 kB / 0.5678 GB, free: 14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4134, allocations: 314.8 kB / 0.5681 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.4134, allocations: 4 kB / 0.5681 GB, free: 13.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.25e-06/0.4134, allocations: 0 / 0.5681 GB, free: 13.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.755e-05/0.4135, allocations: 68.31 kB / 0.5682 GB, free: 13.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.4135, allocations: 0 / 0.5682 GB, free: 13.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.549e-05/0.4135, allocations: 67.33 kB / 0.5682 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.4136, allocations: 33.64 kB / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4136, allocations: 0 / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.4136, allocations: 0 / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.755e-06/0.4136, allocations: 3.984 kB / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.4136, allocations: 3.984 kB / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.917e-05/0.4136, allocations: 4.031 kB / 0.5683 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.4136, allocations: 4 kB / 0.5683 GB, free: 13.47 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.849e-05/0.4137, allocations: 135.5 kB / 0.5684 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.311e-05/0.4137, allocations: 11.88 kB / 0.5684 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.179e-05/0.4138, allocations: 3.125 kB / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.4138, allocations: 0 / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4138, allocations: 0 / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4138, allocations: 0 / 0.5684 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.4139, allocations: 145.7 kB / 0.5686 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.4139, allocations: 0 / 0.5686 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.335e-06/0.4139, allocations: 12 kB / 0.5686 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.4139, allocations: 3.938 kB / 0.5686 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.4139, allocations: 0 / 0.5686 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4139, allocations: 0 / 0.5686 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4139, allocations: 3.938 kB / 0.5686 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001223/0.414, allocations: 98.75 kB / 0.5687 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.4141, allocations: 77.11 kB / 0.5688 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.4141, allocations: 7.969 kB / 0.5688 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.295e-06/0.4141, allocations: 0 / 0.5688 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.72e-05/0.4141, allocations: 4 kB / 0.5688 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-06/0.4141, allocations: 0 / 0.5688 GB, free: 12.87 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.851e-05/0.4142, allocations: 79.28 kB / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4142, allocations: 0 / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004677/0.4146, allocations: 159.5 kB / 0.569 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.0008222/0.4155, allocations: 383.4 kB / 0.5694 GB, free: 12.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001157/0.4156, allocations: 67.39 kB / 0.5694 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4156, allocations: 0 / 0.5694 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.35e-05/0.4156, allocations: 59.41 kB / 0.5695 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.4158, allocations: 4 kB / 0.5695 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002418/0.416, allocations: 81 kB / 0.5696 GB, free: 12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.4164, allocations: 0.6729 MB / 0.5702 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.975e-06/0.4164, allocations: 0 / 0.5702 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.511e-05/0.4164, allocations: 11.44 kB / 0.5702 GB, free: 11.29 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4164, allocations: 0 / 0.5702 GB, free: 11.29 MB / 414.1 MB Notification: Performance of Templates: time 0.01005/0.4264, allocations: 4.606 MB / 0.5747 GB, free: 6.68 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 cvode -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.369670053943992]