Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008015/0.0008015, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001136/0.001937, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001081/0.002096, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9677/0.9677, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08939/1.057, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.69e-05/1.807e-05, allocations: 2.312 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002469/0.002487, allocations: 1.985 MB / 247 MB, free: 11.67 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.00362, allocations: 1.226 MB / 248.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.043e-05/0.003691, allocations: 0 / 248.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006746/0.004365, allocations: 0.5139 MB / 248.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.004527, allocations: 211.2 kB / 248.9 MB, free: 9.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.004786, allocations: 163.2 kB / 249.1 MB, free: 9.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.005028, allocations: 235 kB / 249.3 MB, free: 9.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.965e-05/0.005098, allocations: 10.47 kB / 249.3 MB, free: 9.312 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002438/0.005341, allocations: 205.7 kB / 249.5 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.005535, allocations: 187.7 kB / 249.7 MB, free: 8.93 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.005554, allocations: 4 kB / 249.7 MB, free: 8.926 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.005679, allocations: 67.83 kB / 249.8 MB, free: 8.859 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.005806, allocations: 255.3 kB / 250 MB, free: 8.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.855e-05/0.005895, allocations: 111.4 kB / 250.1 MB, free: 8.5 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004074/0.006302, allocations: 0.4942 MB / 250.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.162e-05/0.006314, allocations: 0 / 250.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.006315, allocations: 0 / 250.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.006334, allocations: 0 / 250.6 MB, free: 8.004 MB / 250.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.001359/0.007693, allocations: 1.222 MB / 251.9 MB, free: 6.734 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.007724, allocations: 12.62 kB / 251.9 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.007829, allocations: 48.88 kB / 251.9 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.008199, allocations: 451.4 kB / 252.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.008216, allocations: 384 / 252.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.008227, allocations: 4.375 kB / 252.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.008365, allocations: 70.89 kB / 252.4 MB, free: 6.113 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.008373, allocations: 8.188 kB / 252.4 MB, free: 6.105 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.008382, allocations: 384 / 252.4 MB, free: 6.105 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.008388, allocations: 3.938 kB / 252.4 MB, free: 6.102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.95e-05/0.008438, allocations: 12 kB / 252.5 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006081/0.009046, allocations: 224.2 kB / 252.7 MB, free: 5.855 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.009166, allocations: 46.48 kB / 252.7 MB, free: 5.801 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.421e-05/0.00919, allocations: 8.859 kB / 252.7 MB, free: 5.789 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.009203, allocations: 8 kB / 252.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.009221, allocations: 30.56 kB / 252.8 MB, free: 5.742 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.009222, allocations: 4 kB / 252.8 MB, free: 5.738 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002099/0.009432, allocations: 105.5 kB / 252.9 MB, free: 5.629 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.009461, allocations: 51.41 kB / 252.9 MB, free: 5.566 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.009941, allocations: 0.739 MB / 253.7 MB, free: 4.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.009955, allocations: 25.7 kB / 253.7 MB, free: 4.777 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.742e-05/0.01005, allocations: 202.4 kB / 253.9 MB, free: 4.574 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.01008, allocations: 11.89 kB / 253.9 MB, free: 4.562 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.01011, allocations: 25.69 kB / 253.9 MB, free: 4.531 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.559e-05/0.01018, allocations: 306 kB / 254.2 MB, free: 4.227 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.437e-05/0.0102, allocations: 4 kB / 254.2 MB, free: 4.223 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.875e-05/0.01022, allocations: 7.984 kB / 254.2 MB, free: 4.215 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.61e-05/0.01027, allocations: 25.12 kB / 254.3 MB, free: 4.188 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.01027, allocations: 0 / 254.3 MB, free: 4.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001457/0.01042, allocations: 97.56 kB / 254.4 MB, free: 4.086 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.01043, allocations: 15.92 kB / 254.4 MB, free: 4.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01044, allocations: 0 / 254.4 MB, free: 4.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.01045, allocations: 7.938 kB / 254.4 MB, free: 4.062 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.987e-05/0.01055, allocations: 11.98 kB / 254.4 MB, free: 4.051 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.01055, allocations: 3.984 kB / 254.4 MB, free: 4.047 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.627e-05/0.01062, allocations: 4 kB / 254.4 MB, free: 4.043 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.996e-06/0.01062, allocations: 4 kB / 254.4 MB, free: 4.039 MB / 250.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 8.742e-05/0.01071, allocations: 116.7 kB / 254.5 MB, free: 3.914 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.179e-05/0.01079, allocations: 51.92 kB / 254.6 MB, free: 3.863 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002088/0.011, allocations: 189.4 kB / 254.7 MB, free: 3.672 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.01101, allocations: 3.938 kB / 254.8 MB, free: 3.668 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.01101, allocations: 7.938 kB / 254.8 MB, free: 3.66 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.01101, allocations: 0 / 254.8 MB, free: 3.66 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/0.01129, allocations: 345.3 kB / 255.1 MB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.01129, allocations: 0 / 255.1 MB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.381e-05/0.01134, allocations: 15.97 kB / 255.1 MB, free: 3.289 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.01146, allocations: 103.4 kB / 255.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.01146, allocations: 0 / 255.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.01146, allocations: 0 / 255.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.01147, allocations: 7.938 kB / 255.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01147, allocations: 0 / 255.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/0.01164, allocations: 230.7 kB / 255.4 MB, free: 2.938 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.01167, allocations: 4 kB / 255.5 MB, free: 2.934 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.901e-05/0.01175, allocations: 4 kB / 255.5 MB, free: 2.93 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.01178, allocations: 15.92 kB / 255.5 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.01179, allocations: 0 / 255.5 MB, free: 2.914 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002854/0.01207, allocations: 395.6 kB / 255.9 MB, free: 2.516 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01207, allocations: 0 / 255.9 MB, free: 2.516 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001746/0.01225, allocations: 67.94 kB / 255.9 MB, free: 2.449 MB / 250.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.0001324/0.01238, allocations: 88.42 kB / 256 MB, free: 2.355 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.017e-05/0.01246, allocations: 20.84 kB / 256 MB, free: 2.332 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/0.01247, allocations: 16 kB / 256 MB, free: 2.316 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.327e-05/0.0125, allocations: 16.84 kB / 256.1 MB, free: 2.297 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.01284, allocations: 135.3 kB / 256.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.015, allocations: 1.109 MB / 257.3 MB, free: 1.02 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.01512, allocations: 193.2 kB / 257.5 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003022/0.01542, allocations: 382.4 kB / 257.9 MB, free: 444 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.01561, allocations: 131.3 kB / 258 MB, free: 312 kB / 250.7 MB Notification: Performance of SimCode: time 7.72e-07/0.01561, allocations: 0 / 258 MB, free: 312 kB / 250.7 MB Notification: Performance of Templates: time 0.01151/0.02712, allocations: 8.548 MB / 266.5 MB, free: 7.828 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.5599843468517065]