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.001456/0.001456, allocations: 111 kB / 17.74 MB, free: 5.34 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.001622/0.001622, allocations: 196.3 kB / 18.68 MB, free: 4.41 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.336/1.336, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 47.92 kB / 352 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2579, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003139/0.2611, allocations: 1.892 MB / 403.3 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.2628, allocations: 1.25 MB / 404.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.352e-05/0.2629, allocations: 0 / 404.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009716/0.2639, allocations: 0.4998 MB / 405 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.2642, allocations: 187.4 kB / 405.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.2646, allocations: 175.4 kB / 405.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.2649, allocations: 235.1 kB / 405.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.741e-05/0.265, allocations: 25.61 kB / 405.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.2653, allocations: 123.6 kB / 405.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.2655, allocations: 215.5 kB / 406 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.2656, allocations: 4 kB / 406 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.2657, allocations: 63.97 kB / 406 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.266, allocations: 259.3 kB / 406.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000224/0.2662, allocations: 281.9 kB / 406.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006988/0.2669, allocations: 0.7742 MB / 407.3 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2669, allocations: 0 / 407.3 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2669, allocations: 0 / 407.3 MB, free: 2.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.2669, allocations: 0 / 407.3 MB, free: 2.926 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.002559/0.2695, allocations: 1.181 MB / 408.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2695, allocations: 8.031 kB / 408.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.2697, allocations: 87.81 kB / 408.6 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.2707, allocations: 0.7509 MB / 409.4 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.2708, allocations: 384 / 409.4 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.2708, allocations: 4.375 kB / 409.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.2711, allocations: 121.8 kB / 409.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.2711, allocations: 4 kB / 409.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.2711, allocations: 4 kB / 409.5 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.2711, allocations: 0 / 409.5 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003503/0.2715, allocations: 143.9 kB / 409.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.2725, allocations: 0.8103 MB / 410.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.2727, allocations: 86.52 kB / 410.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.2729, allocations: 80.88 kB / 410.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.2729, allocations: 3.938 kB / 410.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.273, allocations: 34.56 kB / 410.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.273, allocations: 0 / 410.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008079/0.2738, allocations: 324.4 kB / 411 MB, free: 15.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.2738, allocations: 59.41 kB / 411 MB, free: 15.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.2754, allocations: 1.405 MB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.2754, allocations: 25.7 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003175/0.2758, allocations: 388.4 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.2758, allocations: 3.906 kB / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.919e-05/0.2759, allocations: 25.7 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.276, allocations: 306 kB / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.2761, allocations: 71.94 kB / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.2763, allocations: 86.45 kB / 413.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003337/0.2767, allocations: 158.4 kB / 413.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2767, allocations: 4 kB / 413.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005614/0.2772, allocations: 268.4 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.2773, allocations: 4 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.2773, allocations: 3.938 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2773, allocations: 4 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.2775, allocations: 15.92 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.2775, allocations: 7.984 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.2777, allocations: 12.09 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2778, allocations: 4 kB / 413.8 MB, free: 12.2 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.0003173/0.2781, allocations: 337.6 kB / 414.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.2783, allocations: 82.97 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005828/0.2789, allocations: 281.6 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.2789, allocations: 4.031 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2789, allocations: 0 / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.2789, allocations: 0 / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005025/0.2794, allocations: 0.5182 MB / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2794, allocations: 0 / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.743e-05/0.2795, allocations: 15.98 kB / 415 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2795, allocations: 7.938 kB / 415 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.2795, allocations: 7.984 kB / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2795, allocations: 0 / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2796, allocations: 0 / 415 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/0.28, allocations: 310.8 kB / 415.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003717/0.2804, allocations: 231.9 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.021e-05/0.2805, allocations: 8 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.2807, allocations: 7.984 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.2807, allocations: 0 / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.2807, allocations: 11.98 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001137/0.2819, allocations: 1.009 MB / 416.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2819, allocations: 0 / 416.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.2822, allocations: 68 kB / 416.7 MB, free: 9.211 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.0001968/0.2824, allocations: 118.5 kB / 416.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000377/0.2828, allocations: 123.9 kB / 416.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2828, allocations: 0 / 416.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.283, allocations: 55.89 kB / 417 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005701/0.2836, allocations: 112.3 kB / 417.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.2854, allocations: 1.409 MB / 418.5 MB, free: 7.352 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006095/0.286, allocations: 1.005 MB / 419.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.2862, allocations: 39.42 kB / 419.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2862, allocations: 0 / 419.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of Templates: time 0.0135/0.2997, allocations: 9.183 MB / 428.7 MB, free: 13.11 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/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