Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.503/1.503, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002162/0.002162, allocations: 67.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2869, allocations: 50.54 MB / 409 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003178/0.2901, allocations: 1.919 MB / 411 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.292, allocations: 1.25 MB / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.643e-05/0.2921, allocations: 4 kB / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.2931, allocations: 0.5024 MB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.2934, allocations: 187.4 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004385/0.2938, allocations: 175.4 kB / 413.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.2942, allocations: 234.1 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.2943, allocations: 25.67 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.2946, allocations: 123.6 kB / 413.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.2949, allocations: 207.5 kB / 413.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.234e-05/0.2949, allocations: 8 kB / 413.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.2951, allocations: 67.95 kB / 413.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.2953, allocations: 259.3 kB / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002622/0.2956, allocations: 277.9 kB / 414.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009075/0.2965, allocations: 0.7767 MB / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2965, allocations: 4 kB / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2965, allocations: 0 / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.2966, allocations: 0 / 415 MB, free: 11.39 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.003003/0.2996, allocations: 1.209 MB / 416.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.2996, allocations: 12.03 kB / 416.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.845e-05/0.2997, allocations: 30.75 kB / 416.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.2999, allocations: 100.3 kB / 416.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.3009, allocations: 0.7596 MB / 417.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3009, allocations: 384 / 417.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.3009, allocations: 384 / 417.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.3012, allocations: 125.7 kB / 417.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3013, allocations: 3.938 kB / 417.3 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.3013, allocations: 0 / 417.3 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3013, allocations: 3.938 kB / 417.3 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003577/0.3017, allocations: 147.9 kB / 417.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.3028, allocations: 0.8103 MB / 418.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.3031, allocations: 86.52 kB / 418.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.3032, allocations: 76.84 kB / 418.4 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.3033, allocations: 7.984 kB / 418.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.3033, allocations: 30.56 kB / 418.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.3033, allocations: 0 / 418.4 MB, free: 7.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008741/0.3042, allocations: 325 kB / 418.7 MB, free: 7.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.3043, allocations: 51.41 kB / 418.8 MB, free: 7.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.306, allocations: 1.409 MB / 420.2 MB, free: 5.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.3061, allocations: 25.7 kB / 420.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003511/0.3064, allocations: 388.4 kB / 420.6 MB, free: 5.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.3065, allocations: 7.938 kB / 420.6 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-05/0.3066, allocations: 21.72 kB / 420.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3067, allocations: 309.9 kB / 420.9 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.3069, allocations: 71.88 kB / 421 MB, free: 5.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.3071, allocations: 86.52 kB / 421.1 MB, free: 5.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.3074, allocations: 154.5 kB / 421.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3075, allocations: 0 / 421.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006243/0.3081, allocations: 276.9 kB / 421.5 MB, free: 4.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3081, allocations: 4 kB / 421.5 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3081, allocations: 0 / 421.5 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.3082, allocations: 7.938 kB / 421.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.3083, allocations: 11.98 kB / 421.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.3084, allocations: 0 / 421.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.3086, allocations: 11.98 kB / 421.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.3086, allocations: 8.094 kB / 421.6 MB, free: 4.586 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.000352/0.3089, allocations: 337.6 kB / 421.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.3091, allocations: 91.42 kB / 422 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006323/0.3098, allocations: 277.6 kB / 422.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3098, allocations: 3.938 kB / 422.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3098, allocations: 7.938 kB / 422.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3098, allocations: 0 / 422.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006007/0.3104, allocations: 0.5104 MB / 422.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3104, allocations: 0 / 422.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.175e-05/0.3105, allocations: 19.98 kB / 422.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3105, allocations: 0 / 422.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.3105, allocations: 3.984 kB / 422.8 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3105, allocations: 4 kB / 422.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3105, allocations: 0 / 422.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005318/0.3111, allocations: 319.3 kB / 423.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.3114, allocations: 236.4 kB / 423.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.407e-05/0.3115, allocations: 0 / 423.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.3116, allocations: 4 kB / 423.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.3117, allocations: 11.98 kB / 423.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.3117, allocations: 0 / 423.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.313, allocations: 1.017 MB / 424.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.313, allocations: 0 / 424.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.3133, allocations: 64 kB / 424.4 MB, free: 1.59 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.0009651/0.3143, allocations: 0.8719 MB / 425.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003918/0.3147, allocations: 123.8 kB / 425.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3147, allocations: 192 / 425.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.3149, allocations: 59.95 kB / 425.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005888/0.3155, allocations: 96.5 kB / 425.6 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.3275, allocations: 8.787 MB / 434.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006904/0.3283, allocations: 1.001 MB / 435.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007627/0.3291, allocations: 462.1 kB / 435.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.3294, allocations: 255.3 kB / 436.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3294, allocations: 4 kB / 436.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04419/0.3736, allocations: 16.13 MB / 452.2 MB, free: 5.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.281/9.655, allocations: 3.625 kB / 452.2 MB, free: 5.793 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1)