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.001276/0.001276, allocations: 121.8 kB / 17.84 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 199.5 kB / 18.79 MB, free: 4.289 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.411/1.411, allocations: 230.4 MB / 250 MB, free: 9.062 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.001821/0.001821, allocations: 71.83 kB / 366.8 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2916, allocations: 53.31 MB / 420.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003437/0.295, allocations: 1.923 MB / 422.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.2969, allocations: 1.261 MB / 423.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.797e-05/0.297, allocations: 4 kB / 423.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.2981, allocations: 0.4985 MB / 423.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.2983, allocations: 199.4 kB / 424 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005043/0.2989, allocations: 167.4 kB / 424.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.2992, allocations: 231.1 kB / 424.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.996e-05/0.2993, allocations: 17.69 kB / 424.4 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002693/0.2996, allocations: 123.5 kB / 424.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000319/0.2999, allocations: 227.5 kB / 424.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.044e-05/0.3, allocations: 8 kB / 424.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.3001, allocations: 67.94 kB / 424.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000244/0.3004, allocations: 263.2 kB / 425.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000268/0.3006, allocations: 281.9 kB / 425.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008264/0.3015, allocations: 0.7768 MB / 426.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.3015, allocations: 3.984 kB / 426.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3015, allocations: 0 / 426.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.3015, allocations: 0 / 426.2 MB, free: 2.289 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.002679/0.3042, allocations: 1.201 MB / 427.4 MB, free: 1.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.3042, allocations: 12.03 kB / 427.4 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.3042, allocations: 30.75 kB / 427.4 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.3044, allocations: 96.31 kB / 427.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.3055, allocations: 0.7635 MB / 428.3 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.3055, allocations: 4.312 kB / 428.3 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.3055, allocations: 384 / 428.3 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.3058, allocations: 121.7 kB / 428.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3058, allocations: 0 / 428.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3059, allocations: 4 kB / 428.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.3059, allocations: 0 / 428.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000353/0.3062, allocations: 139.9 kB / 428.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.3073, allocations: 0.8143 MB / 429.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.3075, allocations: 90.45 kB / 429.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.3077, allocations: 72.89 kB / 429.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.3077, allocations: 3.984 kB / 429.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.3077, allocations: 38.56 kB / 429.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3077, allocations: 0 / 429.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008015/0.3085, allocations: 321 kB / 429.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.3086, allocations: 59.34 kB / 429.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.3103, allocations: 1.405 MB / 431.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3103, allocations: 29.64 kB / 431.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003796/0.3107, allocations: 392.4 kB / 431.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.3107, allocations: 7.953 kB / 431.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/0.3108, allocations: 17.72 kB / 431.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3109, allocations: 317.9 kB / 432.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.3111, allocations: 59.95 kB / 432.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.3113, allocations: 86.52 kB / 432.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.3116, allocations: 162.4 kB / 432.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3116, allocations: 0 / 432.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005627/0.3122, allocations: 277 kB / 432.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3122, allocations: 4 kB / 432.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3122, allocations: 0 / 432.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3122, allocations: 0 / 432.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.3124, allocations: 15.98 kB / 432.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.3124, allocations: 0 / 432.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.3126, allocations: 11.98 kB / 432.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.3126, allocations: 0 / 432.7 MB, free: 11.5 MB / 350.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.0003833/0.313, allocations: 341.6 kB / 433 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.3131, allocations: 103.3 kB / 433.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005992/0.3137, allocations: 273.5 kB / 433.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3137, allocations: 8.031 kB / 433.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3138, allocations: 4 kB / 433.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3138, allocations: 0 / 433.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006152/0.3144, allocations: 0.5143 MB / 433.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.3144, allocations: 3.984 kB / 433.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.417e-05/0.3144, allocations: 11.98 kB / 433.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3145, allocations: 0 / 433.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.3145, allocations: 0 / 433.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3145, allocations: 0 / 433.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3145, allocations: 0 / 433.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005143/0.315, allocations: 327.3 kB / 434.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.3153, allocations: 232.4 kB / 434.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.434e-05/0.3154, allocations: 0 / 434.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.3155, allocations: 4 kB / 434.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/0.3156, allocations: 11.92 kB / 434.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.3156, allocations: 0 / 434.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.3169, allocations: 1.017 MB / 435.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3169, allocations: 0 / 435.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003362/0.3172, allocations: 60 kB / 435.5 MB, free: 8.504 MB / 350.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.001045/0.3183, allocations: 0.8719 MB / 436.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004098/0.3187, allocations: 127.8 kB / 436.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3187, allocations: 0 / 436.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001657/0.3189, allocations: 51.95 kB / 436.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.3195, allocations: 107 kB / 436.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.3313, allocations: 8.783 MB / 445.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007406/0.332, allocations: 0.9969 MB / 446.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000753/0.3327, allocations: 478.2 kB / 446.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/0.3331, allocations: 247.3 kB / 447.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3331, allocations: 3.938 kB / 447.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04557/0.3787, allocations: 16.18 MB / 463.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.119/9.498, allocations: 18 kB / 463.4 MB, free: 12.65 MB / 382.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)