Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002156/0.002156, allocations: 168.6 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 177.2 MB / 204.9 MB, free: 9.043 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.202/0.202, allocations: 32.81 MB / 294.1 MB, free: 60 kB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 70.41 kB / 440.5 MB, free: 9.52 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3626, allocations: 65.44 MB / 0.4941 GB, free: 31.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001652/0.3643, allocations: 481.5 kB / 0.4946 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00291/0.3672, allocations: 2.284 MB / 0.4968 GB, free: 29.62 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.697e-05/0.3672, allocations: 0 / 0.4968 GB, free: 29.62 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.221e-05/0.3672, allocations: 7.938 kB / 0.4968 GB, free: 29.61 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.971e-06/0.3672, allocations: 3.188 kB / 0.4968 GB, free: 29.61 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.00253/0.3697, allocations: 1.102 MB / 0.4979 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.442e-05/0.3698, allocations: 2.719 kB / 0.4979 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.359e-05/0.3698, allocations: 0 / 0.4979 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.674e-05/0.3699, allocations: 7.312 kB / 0.4979 GB, free: 29.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.203e-05/0.3699, allocations: 4 kB / 0.4979 GB, free: 29.01 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.753e-06/0.3699, allocations: 3.938 kB / 0.4979 GB, free: 29.01 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.3712, allocations: 0.9657 MB / 0.4989 GB, free: 28.73 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.3712, allocations: 0 / 0.4989 GB, free: 28.73 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.075e-05/0.3712, allocations: 11.16 kB / 0.4989 GB, free: 28.72 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.3717, allocations: 446.9 kB / 0.4993 GB, free: 28.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3717, allocations: 0 / 0.4993 GB, free: 28.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3717, allocations: 3.125 kB / 0.4993 GB, free: 28.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3717, allocations: 0 / 0.4993 GB, free: 28.55 MB / 446.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.0003732/0.3721, allocations: 363.5 kB / 0.4996 GB, free: 28.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3722, allocations: 12.19 kB / 0.4996 GB, free: 28.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.3722, allocations: 0.9375 kB / 0.4996 GB, free: 28.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.254e-05/0.3723, allocations: 102.5 kB / 0.4997 GB, free: 28.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3723, allocations: 384 / 0.4997 GB, free: 28.08 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.425e-06/0.3723, allocations: 3.219 kB / 0.4998 GB, free: 28.08 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.547e-05/0.3724, allocations: 61.62 kB / 0.4998 GB, free: 28.01 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3724, allocations: 0 / 0.4998 GB, free: 28.01 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.3724, allocations: 0 / 0.4998 GB, free: 28.01 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3724, allocations: 0 / 0.4998 GB, free: 28.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.508e-05/0.3724, allocations: 36.8 kB / 0.4998 GB, free: 27.97 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.755e-05/0.3725, allocations: 101.3 kB / 0.4999 GB, free: 27.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.487e-05/0.3725, allocations: 46.42 kB / 0.5 GB, free: 27.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.909e-05/0.3726, allocations: 33.81 kB / 0.5 GB, free: 27.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.708e-06/0.3726, allocations: 0 / 0.5 GB, free: 27.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.3726, allocations: 60.2 kB / 0.5001 GB, free: 27.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3726, allocations: 0 / 0.5001 GB, free: 27.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001643/0.3728, allocations: 127.9 kB / 0.5002 GB, free: 27.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.3728, allocations: 77.11 kB / 0.5003 GB, free: 27.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.521e-05/0.3728, allocations: 93.81 kB / 0.5004 GB, free: 27.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-06/0.3728, allocations: 32.77 kB / 0.5004 GB, free: 27.31 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.095e-05/0.3728, allocations: 80.14 kB / 0.5005 GB, free: 27.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.3729, allocations: 0 / 0.5005 GB, free: 27.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.296e-05/0.3729, allocations: 16.47 kB / 0.5005 GB, free: 27.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.07e-05/0.3729, allocations: 314.8 kB / 0.5008 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.48e-05/0.3729, allocations: 25.7 kB / 0.5008 GB, free: 26.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.111e-05/0.3729, allocations: 32.98 kB / 0.5008 GB, free: 26.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.09e-05/0.373, allocations: 59.3 kB / 0.5009 GB, free: 26.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.373, allocations: 0 / 0.5009 GB, free: 26.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.475e-05/0.373, allocations: 99.22 kB / 0.501 GB, free: 26.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3731, allocations: 32.02 kB / 0.501 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3731, allocations: 0 / 0.501 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3731, allocations: 3.938 kB / 0.501 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.543e-06/0.3731, allocations: 3.031 kB / 0.501 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.3731, allocations: 0 / 0.501 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.259e-05/0.3731, allocations: 0 / 0.501 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.3731, allocations: 3.281 kB / 0.501 GB, free: 26.62 MB / 446.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 5.399e-05/0.3731, allocations: 139.3 kB / 0.5012 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-06/0.3732, allocations: 0 / 0.5012 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.076e-05/0.3732, allocations: 10.97 kB / 0.5012 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3732, allocations: 3.344 kB / 0.5012 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3732, allocations: 0 / 0.5012 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3732, allocations: 0 / 0.5012 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.475e-05/0.3732, allocations: 96.61 kB / 0.5013 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3732, allocations: 3.031 kB / 0.5013 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3732, allocations: 0 / 0.5013 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3732, allocations: 0 / 0.5013 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.3732, allocations: 4 kB / 0.5013 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3732, allocations: 3.938 kB / 0.5013 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3732, allocations: 0 / 0.5013 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.623e-05/0.3733, allocations: 124.8 kB / 0.5014 GB, free: 26.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-06/0.3733, allocations: 3.938 kB / 0.5014 GB, free: 26.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.3733, allocations: 3.344 kB / 0.5014 GB, free: 26.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-06/0.3733, allocations: 3.938 kB / 0.5014 GB, free: 26.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.3733, allocations: 7.406 kB / 0.5014 GB, free: 26.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.3734, allocations: 3.219 kB / 0.5014 GB, free: 26.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.16e-05/0.3734, allocations: 75.28 kB / 0.5015 GB, free: 26.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3734, allocations: 0 / 0.5015 GB, free: 26.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003966/0.3738, allocations: 155.2 kB / 0.5016 GB, free: 26.06 MB / 446.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.0006073/0.3744, allocations: 386.2 kB / 0.502 GB, free: 25.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.289e-05/0.3745, allocations: 112.6 kB / 0.5021 GB, free: 25.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3745, allocations: 4.062 kB / 0.5021 GB, free: 25.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.477e-05/0.3745, allocations: 84.23 kB / 0.5022 GB, free: 25.65 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.3746, allocations: 3.125 kB / 0.5022 GB, free: 25.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001768/0.3748, allocations: 111 kB / 0.5023 GB, free: 25.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.042e-05/0.3748, allocations: 54.64 kB / 0.5024 GB, free: 25.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.4e-06/0.3748, allocations: 3.938 kB / 0.5024 GB, free: 25.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.085e-05/0.3748, allocations: 11.69 kB / 0.5024 GB, free: 25.43 MB / 446.1 MB Notification: Performance of SimCode: time 4e-07/0.3748, allocations: 0 / 0.5024 GB, free: 25.43 MB / 446.1 MB Notification: Performance of Templates: time 0.007477/0.3823, allocations: 4.619 MB / 0.5069 GB, free: 24.94 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.3396433390444145]