Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009599/0.0009599, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.000953/0.000953, allocations: 166.4 kB / 25 MB, free: 8.336 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.057/1.057, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.259/0.259, allocations: 32.8 MB / 294.6 MB, free: 1.285 MB / 266.7 MB " [Timeout remaining time 180] 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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 3.938 kB / 375.9 MB, free: 5.043 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.25e-05/2.466e-05, allocations: 2.312 kB / 375.9 MB, free: 5.039 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001085/0.00111, allocations: 0.4891 MB / 376.4 MB, free: 4.547 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.004104, allocations: 2.346 MB / 378.8 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.041e-05/0.004134, allocations: 0 / 378.8 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.00415, allocations: 0 / 378.8 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.474e-06/0.004157, allocations: 0 / 378.8 MB, free: 2.18 MB / 346.7 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.002061/0.006218, allocations: 1.117 MB / 379.9 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.951e-05/0.006278, allocations: 4 kB / 379.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.006315, allocations: 0 / 379.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.115e-05/0.006347, allocations: 3.984 kB / 379.9 MB, free: 1.051 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.637e-05/0.006373, allocations: 4 kB / 379.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.116e-05/0.006384, allocations: 0 / 379.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001157/0.007541, allocations: 0.9869 MB / 380.9 MB, free: 60 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-06/0.007551, allocations: 0 / 380.9 MB, free: 60 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.919e-05/0.00757, allocations: 0 / 380.9 MB, free: 60 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005348/0.008104, allocations: 0.5377 MB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.008107, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.008108, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.008112, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.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.0003838/0.008496, allocations: 469.2 kB / 381.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.008535, allocations: 8.031 kB / 381.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.085e-05/0.008586, allocations: 4.938 kB / 381.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.036e-05/0.008657, allocations: 108.6 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.008669, allocations: 4.375 kB / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.008679, allocations: 384 / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.957e-05/0.008778, allocations: 59.91 kB / 382.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.008786, allocations: 192 / 382.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.008795, allocations: 384 / 382.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.008805, allocations: 3.938 kB / 382.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.167e-05/0.008827, allocations: 29.7 kB / 382.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.944e-05/0.008926, allocations: 108.6 kB / 382.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.121e-05/0.008977, allocations: 56.8 kB / 382.3 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.275e-05/0.009, allocations: 33.39 kB / 382.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.15e-06/0.009005, allocations: 4.062 kB / 382.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.009044, allocations: 67.03 kB / 382.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.009045, allocations: 0 / 382.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001836/0.009228, allocations: 118.8 kB / 382.5 MB, free: 14.28 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.009363, allocations: 81.05 kB / 382.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.473e-05/0.009408, allocations: 142.2 kB / 382.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/0.009417, allocations: 29.7 kB / 382.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.758e-05/0.009444, allocations: 126.9 kB / 382.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.009464, allocations: 352 / 382.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.00949, allocations: 19.38 kB / 382.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.009624, allocations: 0.4885 MB / 383.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.94e-05/0.009644, allocations: 25.7 kB / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.533e-05/0.009659, allocations: 29.7 kB / 383.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.362e-05/0.009713, allocations: 67.03 kB / 383.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.009715, allocations: 0 / 383.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.977e-05/0.009785, allocations: 96.98 kB / 383.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.009817, allocations: 34.48 kB / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.009824, allocations: 0 / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.009841, allocations: 0 / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.009842, allocations: 96 / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.009851, allocations: 7.938 kB / 383.6 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.182e-05/0.009863, allocations: 0 / 383.6 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.009872, allocations: 4 kB / 383.6 MB, free: 13.02 MB / 362.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 8.059e-05/0.009952, allocations: 182.3 kB / 383.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.186e-06/0.00996, allocations: 7.984 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.838e-06/0.00997, allocations: 6.938 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.009973, allocations: 0 / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.009979, allocations: 4 kB / 383.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.009983, allocations: 3.938 kB / 383.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.461e-05/0.01004, allocations: 104.6 kB / 383.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.01004, allocations: 8 kB / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.01004, allocations: 0 / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-07/0.01004, allocations: 0 / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.01005, allocations: 0 / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.01005, allocations: 0 / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01005, allocations: 0 / 383.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.967e-05/0.01013, allocations: 131.8 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-06/0.01013, allocations: 4 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.01015, allocations: 3.984 kB / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.529e-06/0.01015, allocations: 0 / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.458e-05/0.01017, allocations: 8.016 kB / 384.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-06/0.01017, allocations: 4 kB / 384.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.949e-05/0.0102, allocations: 123.1 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0102, allocations: 3.938 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003168/0.01051, allocations: 155.5 kB / 384.4 MB, free: 12.2 MB / 362.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.000592/0.01111, allocations: 434.1 kB / 384.8 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001031/0.01121, allocations: 118.5 kB / 384.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.01121, allocations: 0 / 384.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.07e-05/0.01124, allocations: 96.73 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.478e-05/0.01134, allocations: 4 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000198/0.01153, allocations: 117.8 kB / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.016e-05/0.01156, allocations: 51.36 kB / 385.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.701e-06/0.01157, allocations: 0 / 385.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.46e-05/0.01158, allocations: 8.5 kB / 385.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.01159, allocations: 0 / 385.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of Templates: time 0.006524/0.01811, allocations: 4.727 MB / 389.9 MB, free: 6.555 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1792636879254133]