Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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.001488/0.001488, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001559/0.001559, allocations: 169.9 kB / 24.91 MB, free: 9.195 MB / 18.57 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.063/1.063, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] 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.2688/0.2688, allocations: 34.26 MB / 296.1 MB, free: 0.6484 MB / 266.7 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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 325.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.98e-05/2.135e-05, allocations: 7.188 kB / 325.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001142/0.001164, allocations: 0.5235 MB / 325.8 MB, free: 7.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002502/0.003666, allocations: 2.369 MB / 328.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.952e-05/0.003685, allocations: 0 / 328.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.003697, allocations: 0 / 328.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.003703, allocations: 0 / 328.1 MB, free: 4.77 MB / 298.7 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.00185/0.005553, allocations: 1.081 MB / 329.2 MB, free: 3.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.745e-05/0.005601, allocations: 7.984 kB / 329.2 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.118e-05/0.005632, allocations: 4 kB / 329.2 MB, free: 3.668 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.77e-05/0.005659, allocations: 0 / 329.2 MB, free: 3.668 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.976e-05/0.005679, allocations: 4 kB / 329.2 MB, free: 3.664 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.712e-06/0.005686, allocations: 0 / 329.2 MB, free: 3.664 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.006985, allocations: 1.069 MB / 330.3 MB, free: 2.594 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.006993, allocations: 4 kB / 330.3 MB, free: 2.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.243e-05/0.007005, allocations: 0 / 330.3 MB, free: 2.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005976/0.007603, allocations: 0.5422 MB / 330.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.007605, allocations: 0 / 330.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.007607, allocations: 0 / 330.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.007611, allocations: 4 kB / 330.9 MB, free: 2.043 MB / 298.7 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.0002736/0.007884, allocations: 337.5 kB / 331.2 MB, free: 1.684 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.007916, allocations: 8.031 kB / 331.2 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.217e-05/0.007938, allocations: 0.9375 kB / 331.2 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.469e-05/0.007993, allocations: 105.8 kB / 331.3 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.008003, allocations: 4.359 kB / 331.3 MB, free: 1.543 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.21e-06/0.008008, allocations: 4.375 kB / 331.3 MB, free: 1.539 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.433e-05/0.008073, allocations: 63.89 kB / 331.4 MB, free: 1.465 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-06/0.008078, allocations: 192 / 331.4 MB, free: 1.465 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.008085, allocations: 4.375 kB / 331.4 MB, free: 1.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.00809, allocations: 3.938 kB / 331.4 MB, free: 1.457 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.641e-05/0.008106, allocations: 29.7 kB / 331.4 MB, free: 1.422 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.397e-05/0.00817, allocations: 53.05 kB / 331.5 MB, free: 1.355 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.867e-05/0.008209, allocations: 44.31 kB / 331.5 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.641e-05/0.008226, allocations: 34.55 kB / 331.5 MB, free: 1.254 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-06/0.008229, allocations: 0 / 331.5 MB, free: 1.254 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.008262, allocations: 68.31 kB / 331.6 MB, free: 1.172 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.008263, allocations: 3.938 kB / 331.6 MB, free: 1.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001081/0.008371, allocations: 106.8 kB / 331.7 MB, free: 1.039 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.008405, allocations: 77.11 kB / 331.8 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.902e-05/0.008434, allocations: 97.86 kB / 331.9 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.517e-06/0.008443, allocations: 33.62 kB / 331.9 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.768e-05/0.008461, allocations: 80.14 kB / 332 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.008475, allocations: 1.375 kB / 332 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.045e-05/0.008496, allocations: 13.72 kB / 332 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.168e-05/0.008568, allocations: 314.9 kB / 332.3 MB, free: 392 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.008581, allocations: 29.7 kB / 332.3 MB, free: 356 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.278e-05/0.008594, allocations: 29.7 kB / 332.4 MB, free: 320 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.779e-05/0.008631, allocations: 68.19 kB / 332.4 MB, free: 236 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.008634, allocations: 0 / 332.4 MB, free: 236 kB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.937e-05/0.008683, allocations: 81.11 kB / 332.5 MB, free: 136 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.00871, allocations: 32.05 kB / 332.5 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.008714, allocations: 0 / 332.5 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.008724, allocations: 4 kB / 332.6 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.008725, allocations: 0 / 332.6 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-06/0.008727, allocations: 4.094 kB / 332.6 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.779e-06/0.008737, allocations: 0 / 332.6 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.008744, allocations: 7.922 kB / 332.6 MB, free: 84 kB / 298.7 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 6.738e-05/0.008811, allocations: 135.5 kB / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-06/0.008816, allocations: 0 / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.746e-06/0.008825, allocations: 7 kB / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.008827, allocations: 4 kB / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.008828, allocations: 0 / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.00883, allocations: 0 / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.186e-05/0.008872, allocations: 69.77 kB / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.008874, allocations: 8 kB / 332.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.008875, allocations: 3.984 kB / 332.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.008877, allocations: 4 kB / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-06/0.00888, allocations: 0 / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.008881, allocations: 0 / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.008882, allocations: 0 / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.292e-05/0.008945, allocations: 112.5 kB / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-06/0.008949, allocations: 4.344 kB / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.088e-06/0.008958, allocations: 0 / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.448e-06/0.008963, allocations: 0 / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.096e-06/0.008971, allocations: 0 / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-06/0.008972, allocations: 4.031 kB / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.52e-06/0.008978, allocations: 12.8 kB / 332.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008978, allocations: 0 / 332.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003096/0.009287, allocations: 155.5 kB / 333.1 MB, free: 15.51 MB / 314.7 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.0005524/0.00984, allocations: 430.1 kB / 333.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.008e-05/0.00993, allocations: 120.2 kB / 333.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.009932, allocations: 0 / 333.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.805e-05/0.00996, allocations: 85.97 kB / 333.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.042e-05/0.01001, allocations: 3.938 kB / 333.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001336/0.01014, allocations: 112.7 kB / 333.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.474e-05/0.01017, allocations: 59.36 kB / 333.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.31e-06/0.01017, allocations: 0 / 333.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.01021, allocations: 51.38 kB / 333.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01021, allocations: 0 / 333.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Templates: time 0.006927/0.01714, allocations: 6.101 MB / 340 MB, free: 8.465 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0192855312488973]