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.00109/0.00109, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001727/0.002817, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001099/0.001099, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001593/0.002692, allocations: 479.5 kB / 11.83 MB, free: 2.344 MB / 13.93 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.065/1.065, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1175/1.182, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.3414/0.3414, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03668/0.3781, allocations: 13.11 MB / 291.5 MB, free: 7.328 MB / 282.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 2.755e-06/2.755e-06, allocations: 0 / 292.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.183e-05/3.459e-05, allocations: 4.312 kB / 292.8 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001665/0.001699, allocations: 0.5336 MB / 293.3 MB, free: 5.711 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00273/0.004429, allocations: 2.369 MB / 295.7 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.004445, allocations: 0 / 295.7 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.45e-06/0.004451, allocations: 7.938 kB / 295.7 MB, free: 3.312 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.42e-07/0.004452, allocations: 0 / 295.7 MB, free: 3.312 MB / 282.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.001627/0.006078, allocations: 1.081 MB / 296.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.476e-05/0.006153, allocations: 4.5 kB / 296.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.006199, allocations: 7.969 kB / 296.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.309e-05/0.006242, allocations: 8 kB / 296.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.384e-05/0.006276, allocations: 0 / 296.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.538e-06/0.006285, allocations: 0 / 296.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.007504, allocations: 1.049 MB / 297.9 MB, free: 1.156 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.007518, allocations: 0 / 297.9 MB, free: 1.156 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.007535, allocations: 8 kB / 297.9 MB, free: 1.148 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005026/0.008038, allocations: 447 kB / 298.3 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.986e-05/0.008058, allocations: 7.984 kB / 298.3 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.008059, allocations: 0 / 298.3 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.008074, allocations: 0 / 298.3 MB, free: 0.7031 MB / 282.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.0004884/0.008562, allocations: 405.4 kB / 298.7 MB, free: 284 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.008606, allocations: 12.03 kB / 298.7 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.008652, allocations: 0.9375 kB / 298.7 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.641e-05/0.008738, allocations: 113.8 kB / 298.8 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.008755, allocations: 4.375 kB / 298.8 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.008769, allocations: 4.312 kB / 298.8 MB, free: 124 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.972e-05/0.008869, allocations: 51.97 kB / 298.9 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.008878, allocations: 8.188 kB / 298.9 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.008887, allocations: 384 / 298.9 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.008896, allocations: 3.938 kB / 298.9 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.024e-05/0.008916, allocations: 25.7 kB / 298.9 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.989e-05/0.009016, allocations: 57.05 kB / 299 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.704e-05/0.009073, allocations: 52.3 kB / 299 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.307e-05/0.009096, allocations: 34.5 kB / 299.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-06/0.009101, allocations: 0 / 299.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.324e-05/0.009154, allocations: 60.33 kB / 299.1 MB, free: 15.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.92e-07/0.009155, allocations: 0 / 299.1 MB, free: 15.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001607/0.009316, allocations: 114.8 kB / 299.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/0.009385, allocations: 158.2 kB / 299.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.183e-05/0.009427, allocations: 89.86 kB / 299.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.00944, allocations: 25.7 kB / 299.5 MB, free: 15.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.197e-05/0.009462, allocations: 80.14 kB / 299.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.009487, allocations: 0 / 299.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.009515, allocations: 13.72 kB / 299.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.009619, allocations: 326.8 kB / 299.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.099e-05/0.00964, allocations: 33.64 kB / 299.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.549e-05/0.009655, allocations: 25.7 kB / 300 MB, free: 14.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.611e-05/0.009711, allocations: 64.45 kB / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.009714, allocations: 0 / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.215e-05/0.009786, allocations: 89.09 kB / 300.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.009838, allocations: 31.27 kB / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.009845, allocations: 0 / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.009862, allocations: 0 / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.457e-06/0.009866, allocations: 3.938 kB / 300.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.009872, allocations: 0 / 300.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.985e-05/0.009891, allocations: 4.688 kB / 300.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.009901, allocations: 3.938 kB / 300.2 MB, free: 14.57 MB / 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 7.364e-05/0.009975, allocations: 147.5 kB / 300.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.847e-06/0.009979, allocations: 0 / 300.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.052e-05/0.009989, allocations: 3 kB / 300.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.009991, allocations: 0 / 300.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.009995, allocations: 4 kB / 300.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.009998, allocations: 0 / 300.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.647e-05/0.01005, allocations: 65.84 kB / 300.4 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-07/0.01006, allocations: 0 / 300.4 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.523e-06/0.01006, allocations: 3.984 kB / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-06/0.01006, allocations: 3.938 kB / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.22e-07/0.01006, allocations: 4 kB / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-06/0.01007, allocations: 7.984 kB / 300.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01007, allocations: 0 / 300.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.01007, allocations: 0 / 300.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.376e-05/0.01016, allocations: 116.5 kB / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.01017, allocations: 4 kB / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.598e-06/0.01018, allocations: 0 / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.331e-05/0.01019, allocations: 3.938 kB / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.01019, allocations: 0 / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.506e-06/0.0102, allocations: 4.859 kB / 300.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.0102, allocations: 0 / 300.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003387/0.01054, allocations: 159.6 kB / 300.7 MB, free: 13.99 MB / 298.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.0006468/0.01118, allocations: 419.8 kB / 301.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001243/0.01131, allocations: 119.7 kB / 301.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.01131, allocations: 0 / 301.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.079e-05/0.01135, allocations: 93.89 kB / 301.3 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.466e-05/0.01142, allocations: 17.42 kB / 301.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002063/0.01162, allocations: 109 kB / 301.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.899e-05/0.01166, allocations: 59.34 kB / 301.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.191e-06/0.01167, allocations: 0 / 301.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/0.01171, allocations: 55.56 kB / 301.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.01171, allocations: 0 / 301.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of Templates: time 0.008955/0.02067, allocations: 6.244 MB / 307.8 MB, free: 6.797 MB / 298.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.220003876835108]