Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001106/0.001106, 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.001657/0.001657, allocations: 171.9 kB / 24.91 MB, free: 8.777 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 0.9653/0.9653, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.344e-06/2.344e-06, allocations: 4 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.17e-05, allocations: 2.312 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002198/0.00222, allocations: 1.948 MB / 275.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.003434, allocations: 1.218 MB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.618e-05/0.00351, allocations: 7.938 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007971/0.004307, allocations: 0.4905 MB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.004465, allocations: 195.3 kB / 277.3 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.004794, allocations: 167.2 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000242/0.005036, allocations: 231 kB / 277.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.453e-05/0.0051, allocations: 14.47 kB / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.0053, allocations: 159.6 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.005476, allocations: 183.7 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.005495, allocations: 8 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.005603, allocations: 55.91 kB / 278.1 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.005741, allocations: 267.3 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.785e-05/0.005839, allocations: 143.4 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004403/0.006279, allocations: 0.5058 MB / 279 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.006282, allocations: 8 kB / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006283, allocations: 0 / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.00629, allocations: 0 / 279 MB, free: 11.73 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.001276/0.007565, allocations: 1.03 MB / 280 MB, free: 10.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.007596, allocations: 12.03 kB / 280 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.007712, allocations: 60.8 kB / 280.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.008089, allocations: 443.5 kB / 280.5 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.008102, allocations: 4.375 kB / 280.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.008117, allocations: 4.359 kB / 280.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/0.008257, allocations: 70.91 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-06/0.008263, allocations: 192 / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-06/0.008273, allocations: 384 / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.008278, allocations: 3.938 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.347e-05/0.008331, allocations: 27.92 kB / 280.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003651/0.008696, allocations: 228.2 kB / 280.9 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.008816, allocations: 42.55 kB / 280.9 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.478e-05/0.008841, allocations: 12.86 kB / 280.9 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.065e-05/0.008851, allocations: 0 / 280.9 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.00887, allocations: 38.55 kB / 280.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.008871, allocations: 0 / 280.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002139/0.009085, allocations: 101.5 kB / 281 MB, free: 9.555 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.602e-05/0.009111, allocations: 51.41 kB / 281.1 MB, free: 9.492 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005095/0.00962, allocations: 0.7429 MB / 281.8 MB, free: 8.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.009636, allocations: 29.7 kB / 281.9 MB, free: 8.695 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.009734, allocations: 194.5 kB / 282.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.009756, allocations: 11.92 kB / 282.1 MB, free: 8.488 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.009791, allocations: 17.72 kB / 282.1 MB, free: 8.465 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.541e-05/0.009857, allocations: 310 kB / 282.4 MB, free: 8.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.566e-05/0.009882, allocations: 7.984 kB / 282.4 MB, free: 8.148 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.039e-05/0.009903, allocations: 4 kB / 282.4 MB, free: 8.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.697e-05/0.00995, allocations: 20.84 kB / 282.4 MB, free: 8.121 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.009952, allocations: 3.938 kB / 282.4 MB, free: 8.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001495/0.0101, allocations: 93.91 kB / 282.5 MB, free: 8.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.01011, allocations: 4 kB / 282.5 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.01012, allocations: 8.031 kB / 282.5 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.01013, allocations: 7.922 kB / 282.5 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.167e-05/0.01021, allocations: 11.98 kB / 282.6 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.384e-06/0.01021, allocations: 3.938 kB / 282.6 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.924e-05/0.01028, allocations: 4 kB / 282.6 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.01029, allocations: 4 kB / 282.6 MB, free: 7.977 MB / 266.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 9.535e-05/0.01039, allocations: 116.7 kB / 282.7 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.673e-05/0.01047, allocations: 47.94 kB / 282.7 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002119/0.01068, allocations: 201.3 kB / 282.9 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.01069, allocations: 7.938 kB / 282.9 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.01069, allocations: 0 / 282.9 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.01069, allocations: 0 / 282.9 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.01098, allocations: 337.2 kB / 283.3 MB, free: 7.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.01098, allocations: 4 kB / 283.3 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.646e-05/0.01102, allocations: 15.98 kB / 283.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.01102, allocations: 0 / 283.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.01103, allocations: 0 / 283.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.01103, allocations: 0 / 283.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.01103, allocations: 0 / 283.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.01119, allocations: 242.6 kB / 283.5 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.01132, allocations: 115.3 kB / 283.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.01136, allocations: 0 / 283.6 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.211e-05/0.01144, allocations: 4 kB / 283.6 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.911e-05/0.01147, allocations: 11.92 kB / 283.6 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.01147, allocations: 4 kB / 283.6 MB, free: 6.836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002949/0.01177, allocations: 387.7 kB / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01177, allocations: 0 / 284 MB, free: 6.445 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001868/0.01196, allocations: 63.98 kB / 284.1 MB, free: 6.383 MB / 266.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001393/0.01209, allocations: 88.42 kB / 284.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.874e-05/0.01217, allocations: 20.84 kB / 284.2 MB, free: 6.266 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.01218, allocations: 16 kB / 284.2 MB, free: 6.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.965e-05/0.01222, allocations: 28.77 kB / 284.2 MB, free: 6.219 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.01253, allocations: 96.2 kB / 284.3 MB, free: 6.121 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.01368, allocations: 1.109 MB / 285.4 MB, free: 4.977 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.0138, allocations: 193.1 kB / 285.6 MB, free: 4.766 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003009/0.0141, allocations: 378.4 kB / 286 MB, free: 4.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.0143, allocations: 143.3 kB / 286.1 MB, free: 4.25 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.0143, allocations: 3.938 kB / 286.1 MB, free: 4.246 MB / 266.7 MB Notification: Performance of Templates: time 0.09693/0.1112, allocations: 8.369 MB / 294.5 MB, free: 23.84 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.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: 2.6632328764535487]