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.001734/0.001734, allocations: 106.9 kB / 19.8 MB, free: 2.5 MB / 14.72 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.002012/0.002012, allocations: 220.6 kB / 23 MB, free: 5.574 MB / 14.72 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 1.493/1.493, allocations: 230.2 MB / 256.2 MB, free: 8.535 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001922/0.001922, allocations: 59.91 kB / 376.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3474, allocations: 53.33 MB / 429.8 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00322/0.3507, allocations: 1.92 MB / 431.7 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.3526, allocations: 1.269 MB / 433 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.33e-05/0.3527, allocations: 0 / 433 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.3537, allocations: 0.5021 MB / 433.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.354, allocations: 203.4 kB / 433.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.3544, allocations: 163.4 kB / 433.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.3548, allocations: 231.1 kB / 434.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.293e-05/0.3548, allocations: 9.688 kB / 434.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.3551, allocations: 135.5 kB / 434.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.3553, allocations: 227.4 kB / 434.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.718e-05/0.3554, allocations: 8 kB / 434.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.3555, allocations: 59.97 kB / 434.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.3557, allocations: 279.1 kB / 434.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002408/0.356, allocations: 269.9 kB / 435 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000857/0.3568, allocations: 0.7716 MB / 435.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3568, allocations: 0 / 435.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3568, allocations: 0 / 435.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.3569, allocations: 0 / 435.8 MB, free: 1.531 MB / 334.1 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.0026/0.3595, allocations: 1.209 MB / 437 MB, free: 276 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3595, allocations: 8.031 kB / 437 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.3597, allocations: 96.31 kB / 437.1 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.3607, allocations: 0.7598 MB / 437.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.3607, allocations: 4.312 kB / 437.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.3607, allocations: 4.375 kB / 437.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.361, allocations: 117.8 kB / 438 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.361, allocations: 0 / 438 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.3611, allocations: 4 kB / 438 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3611, allocations: 4 kB / 438 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00035/0.3614, allocations: 143.9 kB / 438.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.3625, allocations: 0.8142 MB / 439 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/0.3627, allocations: 86.45 kB / 439 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.3629, allocations: 72.89 kB / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.3629, allocations: 0 / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.3629, allocations: 38.56 kB / 439.1 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.81e-07/0.3629, allocations: 0 / 439.1 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008108/0.3637, allocations: 328.9 kB / 439.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.3638, allocations: 51.41 kB / 439.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/0.3655, allocations: 1.405 MB / 440.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.3655, allocations: 33.64 kB / 441 MB, free: 12.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003529/0.3658, allocations: 384.4 kB / 441.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.3659, allocations: 11.95 kB / 441.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.3659, allocations: 17.7 kB / 441.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3661, allocations: 310 kB / 441.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.3663, allocations: 67.95 kB / 441.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.3665, allocations: 82.52 kB / 441.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000351/0.3668, allocations: 166.3 kB / 442 MB, free: 11.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3668, allocations: 0 / 442 MB, free: 11.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005723/0.3674, allocations: 277 kB / 442.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3674, allocations: 6.656 kB / 442.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.3674, allocations: 0 / 442.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3674, allocations: 7.938 kB / 442.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3676, allocations: 11.98 kB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.3676, allocations: 4 kB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.3678, allocations: 7.984 kB / 442.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.3678, allocations: 4 kB / 442.3 MB, free: 10.78 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 0.000435/0.3683, allocations: 341.7 kB / 442.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001866/0.3684, allocations: 95.36 kB / 442.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006293/0.3691, allocations: 281.5 kB / 443 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.3691, allocations: 4 kB / 443 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3691, allocations: 0 / 443 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3691, allocations: 0 / 443 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005876/0.3697, allocations: 0.5104 MB / 443.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3697, allocations: 0 / 443.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.391e-05/0.3698, allocations: 11.98 kB / 443.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3698, allocations: 0 / 443.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.3698, allocations: 0 / 443.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3698, allocations: 0 / 443.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3698, allocations: 0 / 443.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.3703, allocations: 327.3 kB / 443.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/0.3706, allocations: 236.4 kB / 444.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.729e-05/0.3707, allocations: 0 / 444.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.3709, allocations: 11.98 kB / 444.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.3709, allocations: 7.938 kB / 444.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.3709, allocations: 0 / 444.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001262/0.3722, allocations: 1.021 MB / 445.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3722, allocations: 0 / 445.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.3725, allocations: 64 kB / 445.2 MB, free: 7.777 MB / 350.1 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.0001883/0.3727, allocations: 107.2 kB / 445.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003843/0.3731, allocations: 123.9 kB / 445.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3731, allocations: 0 / 445.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.3733, allocations: 59.89 kB / 445.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/0.3739, allocations: 108.5 kB / 445.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.3758, allocations: 1.375 MB / 446.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006713/0.3764, allocations: 1.001 MB / 447.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006451/0.3771, allocations: 470 kB / 448.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.3772, allocations: 35.44 kB / 448.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3772, allocations: 4 kB / 448.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of Templates: time 0.01439/0.3916, allocations: 7.493 MB / 455.9 MB, free: 12.98 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.918624680489302]