Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 106.8 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 35.95 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3539, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.004183/0.3582, allocations: 1.95 MB / 401.4 MB, free: 31.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.3601, allocations: 1.219 MB / 402.6 MB, free: 30.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.3603, allocations: 0 / 402.6 MB, free: 30.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.3617, allocations: 0.4924 MB / 403.1 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002573/0.362, allocations: 187.5 kB / 403.3 MB, free: 29.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005281/0.3626, allocations: 183.4 kB / 403.5 MB, free: 29.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.3629, allocations: 223.1 kB / 403.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.363, allocations: 21.66 kB / 403.7 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.3633, allocations: 107.6 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/0.3636, allocations: 211.5 kB / 404 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.3636, allocations: 8 kB / 404 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.3638, allocations: 55.97 kB / 404.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.3641, allocations: 267.2 kB / 404.4 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002441/0.3643, allocations: 277.9 kB / 404.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007354/0.3651, allocations: 0.7588 MB / 405.4 MB, free: 27.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3651, allocations: 0 / 405.4 MB, free: 27.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3651, allocations: 0 / 405.4 MB, free: 27.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.3651, allocations: 0 / 405.4 MB, free: 27.42 MB / 298.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.003393/0.3685, allocations: 1.177 MB / 406.6 MB, free: 26.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.466e-05/0.3686, allocations: 8.031 kB / 406.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.3688, allocations: 87.89 kB / 406.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.3701, allocations: 0.747 MB / 407.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.3701, allocations: 384 / 407.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.3702, allocations: 384 / 407.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.3705, allocations: 121.9 kB / 407.5 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3705, allocations: 0 / 407.5 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.3706, allocations: 0 / 407.5 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.3706, allocations: 4 kB / 407.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000474/0.3711, allocations: 147.8 kB / 407.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.3724, allocations: 0.8142 MB / 408.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.3727, allocations: 82.53 kB / 408.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002381/0.373, allocations: 80.89 kB / 408.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.373, allocations: 3.984 kB / 408.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.373, allocations: 30.56 kB / 408.7 MB, free: 23.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 2.896e-06/0.3731, allocations: 0 / 408.7 MB, free: 23.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.001104/0.3742, allocations: 332.3 kB / 409 MB, free: 23.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.3742, allocations: 51.41 kB / 409.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002025/0.3763, allocations: 1.413 MB / 410.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.3763, allocations: 25.7 kB / 410.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003486/0.3767, allocations: 380.4 kB / 410.9 MB, free: 21.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.3767, allocations: 15.83 kB / 410.9 MB, free: 21.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.3768, allocations: 21.62 kB / 410.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.096e-05/0.3769, allocations: 310 kB / 411.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.3771, allocations: 63.95 kB / 411.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/0.3774, allocations: 90.52 kB / 411.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.3779, allocations: 162.3 kB / 411.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3779, allocations: 4 kB / 411.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008295/0.3787, allocations: 268.4 kB / 411.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.3788, allocations: 8 kB / 411.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3788, allocations: 0 / 411.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.3788, allocations: 0 / 411.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.3791, allocations: 23.97 kB / 411.8 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.3791, allocations: 0 / 411.8 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000306/0.3794, allocations: 12.03 kB / 411.8 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.3794, allocations: 11.98 kB / 411.8 MB, free: 20.7 MB / 298.7 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.0004363/0.3799, allocations: 341.6 kB / 412.2 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000239/0.3801, allocations: 86.95 kB / 412.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007842/0.3809, allocations: 277.5 kB / 412.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.381, allocations: 0 / 412.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.381, allocations: 0 / 412.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.381, allocations: 8.031 kB / 412.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006139/0.3816, allocations: 0.5065 MB / 413 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.3816, allocations: 3.984 kB / 413 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.586e-05/0.3817, allocations: 11.98 kB / 413.1 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3817, allocations: 4 kB / 413.1 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.3818, allocations: 7.938 kB / 413.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3818, allocations: 7.922 kB / 413.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3818, allocations: 0 / 413.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.3829, allocations: 1.109 MB / 414.2 MB, free: 18.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004161/0.3833, allocations: 224 kB / 414.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.641e-05/0.3834, allocations: 0 / 414.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.3837, allocations: 4 kB / 414.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.355e-05/0.3838, allocations: 11.92 kB / 414.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.3838, allocations: 0 / 414.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00153/0.3853, allocations: 1.013 MB / 415.4 MB, free: 16.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3854, allocations: 0 / 415.4 MB, free: 16.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007802/0.3861, allocations: 64 kB / 415.5 MB, free: 16.88 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: 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.0002283/0.3864, allocations: 119.2 kB / 415.6 MB, free: 16.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004928/0.3869, allocations: 123.8 kB / 415.7 MB, free: 16.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3869, allocations: 0 / 415.7 MB, free: 16.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.3871, allocations: 60.14 kB / 415.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008805/0.388, allocations: 94.47 kB / 415.9 MB, free: 16.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.3905, allocations: 1.643 MB / 417.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.3911, allocations: 1.005 MB / 418.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007441/0.3919, allocations: 474.2 kB / 419 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.392, allocations: 39.44 kB / 419 MB, free: 13.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.392, allocations: 0 / 419 MB, free: 13.27 MB / 298.7 MB Notification: Performance of Templates: time 0.01993/0.412, allocations: 7.302 MB / 426.3 MB, free: 6.012 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches