Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00148/0.00148, allocations: 73.64 kB / 21.24 MB, free: 0.5547 MB / 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.001795/0.001795, allocations: 160 kB / 24.5 MB, free: 3.719 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.488/1.488, allocations: 177.2 MB / 204.9 MB, free: 9.004 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.222/0.222, allocations: 34.28 MB / 295.5 MB, free: 14.57 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+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.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 59.89 kB / 443.1 MB, free: 6.715 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3657, allocations: 66.01 MB / 0.4972 GB, free: 29.85 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001385/0.3671, allocations: 477.2 kB / 0.4977 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002609/0.3697, allocations: 2.291 MB / 0.4999 GB, free: 28.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.382e-05/0.3698, allocations: 3.938 kB / 0.4999 GB, free: 28.03 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.187e-06/0.3698, allocations: 0 / 0.4999 GB, free: 28.03 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.3698, allocations: 0 / 0.4999 GB, free: 28.03 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.002239/0.372, allocations: 1.108 MB / 0.501 GB, free: 27.44 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.659e-05/0.3721, allocations: 3.219 kB / 0.501 GB, free: 27.44 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.877e-05/0.3721, allocations: 3.562 kB / 0.501 GB, free: 27.44 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.402e-05/0.3721, allocations: 0 / 0.501 GB, free: 27.44 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.396e-05/0.3722, allocations: 3.938 kB / 0.501 GB, free: 27.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.482e-06/0.3722, allocations: 3.219 kB / 0.501 GB, free: 27.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.3734, allocations: 0.982 MB / 0.5019 GB, free: 27.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.704e-06/0.3734, allocations: 0 / 0.5019 GB, free: 27.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.836e-05/0.3734, allocations: 3.984 kB / 0.502 GB, free: 27.14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004429/0.3739, allocations: 438.9 kB / 0.5024 GB, free: 26.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3739, allocations: 0 / 0.5024 GB, free: 26.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3739, allocations: 0 / 0.5024 GB, free: 26.97 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.3739, allocations: 0 / 0.5024 GB, free: 26.97 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.0003404/0.3742, allocations: 361.9 kB / 0.5027 GB, free: 26.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.3742, allocations: 12.12 kB / 0.5027 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.923e-05/0.3743, allocations: 0.9375 kB / 0.5027 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.119e-05/0.3743, allocations: 102.5 kB / 0.5028 GB, free: 26.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.3743, allocations: 4.375 kB / 0.5028 GB, free: 26.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.3743, allocations: 10.95 kB / 0.5028 GB, free: 26.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.369e-05/0.3744, allocations: 62.94 kB / 0.5029 GB, free: 26.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3744, allocations: 0 / 0.5029 GB, free: 26.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.3744, allocations: 0 / 0.5029 GB, free: 26.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.3744, allocations: 0 / 0.5029 GB, free: 26.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.923e-05/0.3744, allocations: 28.77 kB / 0.5029 GB, free: 26.39 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.547e-05/0.3745, allocations: 97.27 kB / 0.503 GB, free: 26.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.148e-05/0.3746, allocations: 46.72 kB / 0.5031 GB, free: 26.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.555e-05/0.3746, allocations: 41.47 kB / 0.5031 GB, free: 26.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.206e-06/0.3746, allocations: 7.938 kB / 0.5031 GB, free: 26.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.3746, allocations: 56.27 kB / 0.5032 GB, free: 26.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.3746, allocations: 0 / 0.5032 GB, free: 26.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001424/0.3747, allocations: 119.5 kB / 0.5033 GB, free: 25.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.3748, allocations: 77.11 kB / 0.5034 GB, free: 25.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.835e-05/0.3748, allocations: 97.81 kB / 0.5034 GB, free: 25.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.53e-06/0.3748, allocations: 28.83 kB / 0.5035 GB, free: 25.73 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.145e-06/0.3748, allocations: 80.14 kB / 0.5035 GB, free: 25.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.223e-05/0.3748, allocations: 0 / 0.5035 GB, free: 25.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.3748, allocations: 16.58 kB / 0.5036 GB, free: 25.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.801e-05/0.3749, allocations: 315 kB / 0.5039 GB, free: 25.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.458e-05/0.3749, allocations: 29.64 kB / 0.5039 GB, free: 25.28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.13e-05/0.3749, allocations: 28.89 kB / 0.5039 GB, free: 25.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.056e-05/0.3749, allocations: 63.39 kB / 0.504 GB, free: 25.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3749, allocations: 0 / 0.504 GB, free: 25.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.353e-05/0.375, allocations: 86.81 kB / 0.5041 GB, free: 25.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.375, allocations: 32.14 kB / 0.5041 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.375, allocations: 0 / 0.5041 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.375, allocations: 3.938 kB / 0.5041 GB, free: 25.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.375, allocations: 7.375 kB / 0.5041 GB, free: 25.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.375, allocations: 0 / 0.5041 GB, free: 25.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.421e-05/0.3751, allocations: 3.938 kB / 0.5041 GB, free: 25.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.3751, allocations: 3.469 kB / 0.5041 GB, free: 25.04 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 4.593e-05/0.3751, allocations: 143.5 kB / 0.5043 GB, free: 24.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-06/0.3751, allocations: 0 / 0.5043 GB, free: 24.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.837e-06/0.3751, allocations: 6.938 kB / 0.5043 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3751, allocations: 3.469 kB / 0.5043 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3751, allocations: 0 / 0.5043 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.3751, allocations: 0 / 0.5043 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.482e-05/0.3752, allocations: 96.56 kB / 0.5044 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3752, allocations: 4 kB / 0.5044 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3752, allocations: 3.25 kB / 0.5044 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3752, allocations: 4 kB / 0.5044 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.3752, allocations: 0 / 0.5044 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3752, allocations: 3.938 kB / 0.5044 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3752, allocations: 0 / 0.5044 GB, free: 24.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.354e-05/0.3753, allocations: 120.5 kB / 0.5045 GB, free: 24.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-06/0.3753, allocations: 0 / 0.5045 GB, free: 24.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.3753, allocations: 3.219 kB / 0.5045 GB, free: 24.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-06/0.3753, allocations: 3.938 kB / 0.5045 GB, free: 24.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.407e-05/0.3753, allocations: 7.453 kB / 0.5045 GB, free: 24.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.3753, allocations: 3.094 kB / 0.5045 GB, free: 24.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.009e-05/0.3753, allocations: 83.22 kB / 0.5046 GB, free: 24.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3753, allocations: 0 / 0.5046 GB, free: 24.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.3757, allocations: 155 kB / 0.5047 GB, free: 24.48 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.0005838/0.3763, allocations: 397.7 kB / 0.5051 GB, free: 24.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 8.01e-05/0.3763, allocations: 116.3 kB / 0.5052 GB, free: 24.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3764, allocations: 0 / 0.5052 GB, free: 24.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.052e-05/0.3764, allocations: 79.98 kB / 0.5053 GB, free: 24.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.3765, allocations: 3.188 kB / 0.5053 GB, free: 24.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001408/0.3766, allocations: 115 kB / 0.5054 GB, free: 23.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.45e-05/0.3767, allocations: 58.39 kB / 0.5055 GB, free: 23.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.601e-06/0.3767, allocations: 0 / 0.5055 GB, free: 23.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.033e-05/0.3767, allocations: 11.72 kB / 0.5055 GB, free: 23.84 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3767, allocations: 0 / 0.5055 GB, free: 23.84 MB / 446.1 MB Notification: Performance of Templates: time 0.007711/0.3844, allocations: 4.61 MB / 0.51 GB, free: 23.36 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.2074133299756795]