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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=20000,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=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001414/0.001414, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.001639, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3438, allocations: 50.54 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00323/0.347, allocations: 1.911 MB / 411.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.3488, allocations: 1.25 MB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.58e-05/0.3489, allocations: 4 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.3499, allocations: 0.5023 MB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.3501, allocations: 191.4 kB / 413.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000455/0.3506, allocations: 175.3 kB / 413.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.351, allocations: 235.1 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.3511, allocations: 21.69 kB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.3514, allocations: 127.5 kB / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002661/0.3517, allocations: 207.5 kB / 413.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.3517, allocations: 8 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.3519, allocations: 63.95 kB / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.3521, allocations: 263.3 kB / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.3523, allocations: 273.9 kB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007261/0.353, allocations: 0.7796 MB / 415.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3531, allocations: 3.938 kB / 415.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3531, allocations: 0 / 415.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.3531, allocations: 0 / 415.2 MB, free: 11.59 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.002484/0.3556, allocations: 1.174 MB / 416.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3556, allocations: 12.03 kB / 416.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.3558, allocations: 87.89 kB / 416.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009666/0.3568, allocations: 0.7548 MB / 417.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.3568, allocations: 384 / 417.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.3568, allocations: 384 / 417.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/0.3571, allocations: 121.9 kB / 417.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.3571, allocations: 0 / 417.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.3572, allocations: 0 / 417.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3572, allocations: 3.938 kB / 417.4 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.3575, allocations: 151.8 kB / 417.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009454/0.3585, allocations: 0.8065 MB / 418.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.3587, allocations: 86.52 kB / 418.4 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.3588, allocations: 72.91 kB / 418.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.3589, allocations: 0 / 418.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.3589, allocations: 42.48 kB / 418.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.3589, allocations: 0 / 418.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000763/0.3597, allocations: 324.4 kB / 418.8 MB, free: 7.777 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.3597, allocations: 55.41 kB / 418.9 MB, free: 7.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.3613, allocations: 1.405 MB / 420.3 MB, free: 6.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3613, allocations: 25.7 kB / 420.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/0.3616, allocations: 396.4 kB / 420.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.3616, allocations: 11.88 kB / 420.7 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.124e-05/0.3617, allocations: 21.72 kB / 420.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3618, allocations: 306 kB / 421 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.362, allocations: 63.94 kB / 421.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.3622, allocations: 90.45 kB / 421.2 MB, free: 5.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/0.3625, allocations: 162.4 kB / 421.3 MB, free: 5.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3625, allocations: 0 / 421.3 MB, free: 5.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005391/0.3631, allocations: 272.4 kB / 421.6 MB, free: 4.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3631, allocations: 4 kB / 421.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3631, allocations: 0 / 421.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.3631, allocations: 0 / 421.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.3633, allocations: 15.98 kB / 421.6 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.3633, allocations: 3.938 kB / 421.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.3635, allocations: 11.98 kB / 421.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.3636, allocations: 7.984 kB / 421.6 MB, free: 4.875 MB / 334.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.0003213/0.3639, allocations: 345.6 kB / 422 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.3641, allocations: 86.95 kB / 422.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005634/0.3646, allocations: 277.3 kB / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3646, allocations: 0 / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3647, allocations: 0 / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3647, allocations: 336 / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005181/0.3652, allocations: 0.5181 MB / 422.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3652, allocations: 0 / 422.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.836e-05/0.3653, allocations: 15.92 kB / 422.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3653, allocations: 3.984 kB / 422.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.3653, allocations: 7.984 kB / 422.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3653, allocations: 4 kB / 422.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3653, allocations: 0 / 422.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.3658, allocations: 314.9 kB / 423.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.3661, allocations: 227.9 kB / 423.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.408e-05/0.3662, allocations: 0 / 423.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.3663, allocations: 4 kB / 423.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.3664, allocations: 7.984 kB / 423.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.3664, allocations: 0 / 423.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.3675, allocations: 1.017 MB / 424.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3676, allocations: 0 / 424.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003218/0.3679, allocations: 67.94 kB / 424.5 MB, free: 1.887 MB / 334.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.0002073/0.3681, allocations: 111.2 kB / 424.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.3685, allocations: 127.8 kB / 424.7 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3685, allocations: 0 / 424.7 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.3686, allocations: 51.95 kB / 424.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005536/0.3692, allocations: 105.7 kB / 424.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.371, allocations: 1.357 MB / 426.3 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007303/0.3718, allocations: 0.9969 MB / 427.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006341/0.3724, allocations: 478.2 kB / 427.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.3725, allocations: 43.42 kB / 427.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3725, allocations: 0 / 427.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of Templates: time 0.01342/0.386, allocations: 7.434 MB / 435.2 MB, free: 7.172 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches