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.001582/0.001582, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.001126/0.001126, allocations: 162.2 kB / 25.61 MB, free: 8.879 MB / 18.57 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.988/0.988, allocations: 177 MB / 205.9 MB, free: 4.41 MB / 186.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.824e-06/1.824e-06, allocations: 0 / 274.1 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.933e-05/2.115e-05, allocations: 7.281 kB / 274.1 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002124/0.002145, allocations: 1.924 MB / 276 MB, free: 2.445 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.003438, allocations: 1.2 MB / 277.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.835e-05/0.003526, allocations: 0 / 277.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000783/0.004309, allocations: 0.5003 MB / 277.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.004452, allocations: 199.3 kB / 277.9 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.004716, allocations: 155.3 kB / 278.1 MB, free: 408 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000231/0.004947, allocations: 231 kB / 278.3 MB, free: 176 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.644e-05/0.005013, allocations: 9.797 kB / 278.3 MB, free: 164 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.005217, allocations: 155.6 kB / 278.5 MB, free: 8 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.005437, allocations: 215.8 kB / 278.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.005455, allocations: 4 kB / 278.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.005556, allocations: 71.89 kB / 278.7 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.005689, allocations: 259.3 kB / 279 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.005792, allocations: 139.5 kB / 279.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.006194, allocations: 0.5058 MB / 279.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.006196, allocations: 0 / 279.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.006197, allocations: 0 / 279.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.006203, allocations: 4 kB / 279.6 MB, free: 14.82 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.001404/0.007607, allocations: 1.269 MB / 280.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.007642, allocations: 8.031 kB / 280.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.007768, allocations: 96.31 kB / 281 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.008166, allocations: 486.2 kB / 281.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.008184, allocations: 4.375 kB / 281.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.008196, allocations: 4.375 kB / 281.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.008327, allocations: 66.91 kB / 281.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.008334, allocations: 192 / 281.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.008344, allocations: 4.375 kB / 281.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.00835, allocations: 3.938 kB / 281.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.361e-05/0.008404, allocations: 19.92 kB / 281.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.008967, allocations: 0.5398 MB / 282.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.009105, allocations: 55.05 kB / 282.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3e-05/0.009135, allocations: 19.75 kB / 282.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/0.009145, allocations: 0 / 282.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.009165, allocations: 37.33 kB / 282.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.009166, allocations: 0 / 282.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.00026/0.009426, allocations: 165 kB / 282.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.009454, allocations: 51.41 kB / 282.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008673/0.01032, allocations: 1.099 MB / 283.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.01034, allocations: 25.7 kB / 283.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003077/0.01064, allocations: 0.511 MB / 284.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.01067, allocations: 19.83 kB / 284.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.01071, allocations: 27.36 kB / 284.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.01089, allocations: 488.4 kB / 284.6 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.642e-05/0.01091, allocations: 4 kB / 284.6 MB, free: 9.637 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.455e-05/0.01094, allocations: 11.98 kB / 284.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.834e-05/0.01099, allocations: 27.62 kB / 284.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.011, allocations: 0 / 284.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001821/0.01118, allocations: 141.1 kB / 284.8 MB, free: 9.449 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.01119, allocations: 8 kB / 284.8 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.0112, allocations: 3.938 kB / 284.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.01121, allocations: 0 / 284.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.0113, allocations: 15.98 kB / 284.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.454e-06/0.0113, allocations: 0 / 284.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.448e-05/0.01137, allocations: 4 kB / 284.8 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.01138, allocations: 3.984 kB / 284.8 MB, free: 9.414 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.453e-05/0.01148, allocations: 160.6 kB / 285 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.898e-05/0.01157, allocations: 95.33 kB / 285.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.01179, allocations: 169.7 kB / 285.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.0118, allocations: 3.984 kB / 285.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.0118, allocations: 0 / 285.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.0118, allocations: 0 / 285.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000298/0.0121, allocations: 365.7 kB / 285.6 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.0121, allocations: 3.938 kB / 285.6 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-05/0.01213, allocations: 11.98 kB / 285.6 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.01214, allocations: 0 / 285.6 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.01214, allocations: 0 / 285.6 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.01214, allocations: 4 kB / 285.6 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.01214, allocations: 3.938 kB / 285.6 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.01233, allocations: 296 kB / 285.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.01245, allocations: 111.4 kB / 286 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.01249, allocations: 0 / 286 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.659e-05/0.01256, allocations: 4 kB / 286 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.01261, allocations: 15.92 kB / 286 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.01261, allocations: 0 / 286 MB, free: 8.129 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005898/0.0132, allocations: 0.603 MB / 286.6 MB, free: 7.516 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0132, allocations: 4 kB / 286.6 MB, free: 7.512 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002113/0.01342, allocations: 64 kB / 286.7 MB, free: 7.449 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.0001229/0.01354, allocations: 111.2 kB / 286.8 MB, free: 7.332 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.01364, allocations: 35.61 kB / 286.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.01364, allocations: 0 / 286.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.226e-05/0.01369, allocations: 19.67 kB / 286.9 MB, free: 7.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.01404, allocations: 106.6 kB / 287 MB, free: 7.164 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.01524, allocations: 1.102 MB / 288.1 MB, free: 6.027 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.01539, allocations: 201 kB / 288.3 MB, free: 5.812 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003337/0.01572, allocations: 374.2 kB / 288.6 MB, free: 5.441 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.01592, allocations: 166.1 kB / 288.8 MB, free: 5.277 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01592, allocations: 4 kB / 288.8 MB, free: 5.273 MB / 266.7 MB Notification: Performance of Templates: time 0.01114/0.02706, allocations: 8.574 MB / 297.4 MB, free: 12.79 MB / 282.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 -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.8336975099518895]