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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 111.6 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001227, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009989/0.0009989, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3333, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003063/0.3364, allocations: 1.904 MB / 402.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.3381, allocations: 1.23 MB / 403.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.194e-05/0.3382, allocations: 7.938 kB / 403.8 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009313/0.3391, allocations: 0.4983 MB / 404.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.3393, allocations: 195.4 kB / 404.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004011/0.3397, allocations: 171.4 kB / 404.7 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.34, allocations: 231.1 kB / 404.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.556e-05/0.3401, allocations: 29.66 kB / 405 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001796/0.3403, allocations: 123.6 kB / 405.1 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.3406, allocations: 215.5 kB / 405.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.3406, allocations: 4 kB / 405.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.3408, allocations: 63.89 kB / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.341, allocations: 259.3 kB / 405.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.3412, allocations: 285.8 kB / 405.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000657/0.3419, allocations: 0.7719 MB / 406.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3419, allocations: 0 / 406.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3419, allocations: 0 / 406.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.3419, allocations: 0 / 406.7 MB, free: 2.902 MB / 318.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.002344/0.3442, allocations: 1.181 MB / 407.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.3443, allocations: 11.97 kB / 407.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001786/0.3445, allocations: 91.8 kB / 407.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008902/0.3454, allocations: 0.7392 MB / 408.7 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.3454, allocations: 384 / 408.7 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.199e-05/0.3454, allocations: 4.375 kB / 408.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.3457, allocations: 117.9 kB / 408.8 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.3457, allocations: 4 kB / 408.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.3457, allocations: 7.984 kB / 408.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3458, allocations: 0 / 408.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003363/0.3461, allocations: 143.9 kB / 409 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009917/0.3471, allocations: 0.818 MB / 409.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.3473, allocations: 90.52 kB / 409.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.3475, allocations: 68.91 kB / 409.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.3475, allocations: 0 / 409.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.3475, allocations: 38.55 kB / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.3475, allocations: 0 / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000783/0.3483, allocations: 328.3 kB / 410.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.3484, allocations: 55.41 kB / 410.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001596/0.35, allocations: 1.405 MB / 411.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.35, allocations: 25.7 kB / 411.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.3503, allocations: 392.4 kB / 412.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.3504, allocations: 3.906 kB / 412.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.662e-05/0.3504, allocations: 25.7 kB / 412.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.3505, allocations: 306 kB / 412.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.3507, allocations: 71.94 kB / 412.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.3509, allocations: 86.7 kB / 412.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.3513, allocations: 170.3 kB / 412.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3513, allocations: 0 / 412.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000567/0.3519, allocations: 264.4 kB / 413.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3519, allocations: 4 kB / 413.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3519, allocations: 0 / 413.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3519, allocations: 4 kB / 413.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.3521, allocations: 15.98 kB / 413.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3521, allocations: 4.094 kB / 413.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.3523, allocations: 11.98 kB / 413.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.3524, allocations: 4 kB / 413.1 MB, free: 12.18 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.000345/0.3527, allocations: 341.6 kB / 413.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/0.3529, allocations: 86.95 kB / 413.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006416/0.3535, allocations: 277.3 kB / 413.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3536, allocations: 4 kB / 413.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3536, allocations: 0 / 413.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3536, allocations: 0 / 413.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005376/0.3541, allocations: 0.5143 MB / 414.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.3541, allocations: 0 / 414.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.843e-05/0.3542, allocations: 15.98 kB / 414.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-06/0.3542, allocations: 0 / 414.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.3543, allocations: 3.938 kB / 414.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3543, allocations: 4 kB / 414.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3543, allocations: 0 / 414.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000507/0.3548, allocations: 322.7 kB / 414.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002672/0.3551, allocations: 220.1 kB / 414.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.3551, allocations: 11.98 kB / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.3553, allocations: 8 kB / 414.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.378e-05/0.3554, allocations: 7.969 kB / 414.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.3554, allocations: 4 kB / 414.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001116/0.3565, allocations: 1.013 MB / 415.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3565, allocations: 0 / 415.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.3569, allocations: 67.94 kB / 416 MB, free: 9.191 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.000219/0.3571, allocations: 124 kB / 416.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000378/0.3575, allocations: 123.8 kB / 416.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3575, allocations: 0 / 416.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.3577, allocations: 55.95 kB / 416.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005696/0.3583, allocations: 107.4 kB / 416.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.3601, allocations: 1.353 MB / 417.7 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006089/0.3607, allocations: 1.005 MB / 418.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000592/0.3613, allocations: 470.1 kB / 419.2 MB, free: 5.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3614, allocations: 39.44 kB / 419.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3614, allocations: 0 / 419.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of Templates: time 0.01397/0.3754, allocations: 7.495 MB / 426.7 MB, free: 14.41 MB / 350.1 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/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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches