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.001732/0.001732, allocations: 118.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.002005/0.002005, allocations: 198 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.43/1.43, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.001929/0.001929, allocations: 59.91 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.261, allocations: 50.54 MB / 409 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003175/0.2642, allocations: 1.908 MB / 410.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.2661, allocations: 1.25 MB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.488e-05/0.2662, allocations: 4 kB / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.2673, allocations: 0.4986 MB / 412.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.2675, allocations: 195.4 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004823/0.268, allocations: 163.4 kB / 413 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.2685, allocations: 243.1 kB / 413.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.2686, allocations: 21.67 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.2689, allocations: 123.6 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002969/0.2692, allocations: 211.5 kB / 413.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.2692, allocations: 11.94 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.2694, allocations: 63.97 kB / 413.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002427/0.2696, allocations: 267.2 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002653/0.2699, allocations: 273.9 kB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009191/0.2708, allocations: 0.7768 MB / 415 MB, free: 11.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2708, allocations: 0 / 415 MB, free: 11.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2709, allocations: 0 / 415 MB, free: 11.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.2709, allocations: 0 / 415 MB, free: 11.41 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.00271/0.2736, allocations: 1.205 MB / 416.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.2736, allocations: 11.97 kB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.039e-05/0.2737, allocations: 38.75 kB / 416.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.2739, allocations: 100.3 kB / 416.4 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.275, allocations: 0.7518 MB / 417.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.275, allocations: 4.375 kB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.275, allocations: 4.375 kB / 417.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.2753, allocations: 117.7 kB / 417.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.2754, allocations: 3.938 kB / 417.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.2754, allocations: 0 / 417.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.2754, allocations: 0 / 417.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003812/0.2758, allocations: 151.8 kB / 417.4 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.2769, allocations: 0.8143 MB / 418.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.2771, allocations: 78.53 kB / 418.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.2773, allocations: 72.89 kB / 418.3 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2773, allocations: 8 kB / 418.4 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.2774, allocations: 30.56 kB / 418.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.2774, allocations: 0 / 418.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008329/0.2782, allocations: 329 kB / 418.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.2783, allocations: 51.41 kB / 418.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/0.28, allocations: 1.409 MB / 420.2 MB, free: 6.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.2801, allocations: 29.7 kB / 420.2 MB, free: 5.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004174/0.2805, allocations: 388.4 kB / 420.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.2805, allocations: 3.953 kB / 420.6 MB, free: 5.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.445e-05/0.2806, allocations: 25.7 kB / 420.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2807, allocations: 309.9 kB / 420.9 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.2809, allocations: 67.94 kB / 421 MB, free: 5.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001903/0.2811, allocations: 94.56 kB / 421.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.2815, allocations: 162.4 kB / 421.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2815, allocations: 0 / 421.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006077/0.2821, allocations: 268.9 kB / 421.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.2821, allocations: 8 kB / 421.5 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.2821, allocations: 0 / 421.5 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2822, allocations: 0 / 421.5 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.2823, allocations: 15.98 kB / 421.5 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.2824, allocations: 3.984 kB / 421.5 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.2825, allocations: 11.98 kB / 421.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.2826, allocations: 4.094 kB / 421.5 MB, free: 4.613 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.0004562/0.283, allocations: 349.6 kB / 421.9 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.2832, allocations: 87.44 kB / 422 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006181/0.2839, allocations: 269.3 kB / 422.2 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2839, allocations: 0 / 422.2 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2839, allocations: 3.938 kB / 422.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2839, allocations: 3.938 kB / 422.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006052/0.2845, allocations: 0.522 MB / 422.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.2845, allocations: 4 kB / 422.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.774e-05/0.2846, allocations: 7.984 kB / 422.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.2846, allocations: 4 kB / 422.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.2846, allocations: 144 / 422.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2846, allocations: 4 kB / 422.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2846, allocations: 0 / 422.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005264/0.2852, allocations: 327.2 kB / 423.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.2855, allocations: 232.4 kB / 423.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.254e-05/0.2856, allocations: 0 / 423.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.2857, allocations: 15.98 kB / 423.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.728e-05/0.2858, allocations: 4 kB / 423.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.2858, allocations: 7.984 kB / 423.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001313/0.2871, allocations: 1.013 MB / 424.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2871, allocations: 0 / 424.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.2875, allocations: 60 kB / 424.4 MB, free: 1.609 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.0009477/0.2884, allocations: 0.868 MB / 425.3 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003893/0.2888, allocations: 123.9 kB / 425.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2889, allocations: 192 / 425.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.289, allocations: 55.89 kB / 425.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.2896, allocations: 99.58 kB / 425.6 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.3016, allocations: 8.787 MB / 434.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007008/0.3024, allocations: 1.005 MB / 435.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006716/0.303, allocations: 470.3 kB / 435.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/0.3034, allocations: 247.4 kB / 436 MB, free: 5.781 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3034, allocations: 0 / 436 MB, free: 5.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07644/0.3798, allocations: 16.13 MB / 452.2 MB, free: 5.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.434/9.814, allocations: 7.688 kB / 452.2 MB, free: 5.82 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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)