Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Components.myBattery.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) 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: "" <> buildModelFMU(PowerSysPro.Components.myBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Components_myBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Components.myBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Components_myBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004957/0.004957, allocations: 97.75 kB / 15.92 MB, free: 6.328 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.001263/0.001263, allocations: 197.4 kB / 16.84 MB, free: 6.238 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.259/1.259, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1756/0.1756, allocations: 8.086 MB / 298.7 MB, free: 2.031 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.89 kB / 361.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08479/0.08603, allocations: 51.52 MB / 412.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.004024/0.09011, allocations: 2.52 MB / 415.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.09159, allocations: 0.8991 MB / 416.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.09182, allocations: 8 kB / 416.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007338/0.09259, allocations: 367.4 kB / 416.4 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003821/0.09299, allocations: 195.4 kB / 416.6 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.09384, allocations: 390.7 kB / 417 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004129/0.09427, allocations: 334.9 kB / 417.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.09446, allocations: 107.6 kB / 417.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/0.0947, allocations: 151.5 kB / 417.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003804/0.09508, allocations: 283.2 kB / 417.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.981e-05/0.09515, allocations: 24 kB / 417.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002977/0.09546, allocations: 151.9 kB / 418 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.0957, allocations: 311 kB / 418.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002953/0.096, allocations: 333.7 kB / 418.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008336/0.09684, allocations: 0.9072 MB / 419.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.09686, allocations: 0 / 419.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.09687, allocations: 0 / 419.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.376e-05/0.0969, allocations: 3.938 kB / 419.6 MB, free: 3.094 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.002259/0.09916, allocations: 1.24 MB / 420.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.09921, allocations: 12.03 kB / 420.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.293e-05/0.09929, allocations: 54.73 kB / 420.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.09946, allocations: 91.81 kB / 421 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009495/0.1004, allocations: 0.7422 MB / 421.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.584e-05/0.1005, allocations: 76.33 kB / 421.8 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.1006, allocations: 20.38 kB / 421.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.1011, allocations: 299.8 kB / 422.1 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.1011, allocations: 0 / 422.1 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.1012, allocations: 8 kB / 422.1 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1012, allocations: 4 kB / 422.1 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003864/0.1016, allocations: 171.7 kB / 422.3 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.1035, allocations: 1.286 MB / 423.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000654/0.1042, allocations: 311.7 kB / 423.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003349/0.1046, allocations: 136.8 kB / 424 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009447/0.1055, allocations: 0.6611 MB / 424.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.1055, allocations: 42.56 kB / 424.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.653e-06/0.1056, allocations: 0 / 424.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007749/0.1063, allocations: 296.5 kB / 425 MB, free: 13.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1064, allocations: 239.3 kB / 425.2 MB, free: 13.06 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:54:7-55:59:writable] Warning: Parameter SOC_start has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:53:7-53:73:writable] Warning: Parameter Np has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:52:7-52:71:writable] Warning: Parameter Ns has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:425:9-425:73:writable] Warning: Parameter UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.1083, allocations: 1.568 MB / 426.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.1084, allocations: 29.7 kB / 426.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.1087, allocations: 422.9 kB / 427.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.1087, allocations: 39.44 kB / 427.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.1088, allocations: 41.7 kB / 427.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.96e-05/0.1089, allocations: 314 kB / 427.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.1091, allocations: 63.97 kB / 427.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.1094, allocations: 163.9 kB / 427.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009613/0.1103, allocations: 317.6 kB / 428.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1104, allocations: 3.938 kB / 428.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005615/0.1109, allocations: 288 kB / 428.5 MB, free: 9.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.111, allocations: 4 kB / 428.5 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.111, allocations: 0 / 428.5 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.111, allocations: 4 kB / 428.5 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006921/0.1117, allocations: 112 kB / 428.6 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1117, allocations: 4 kB / 428.6 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/0.112, allocations: 27.83 kB / 428.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.112, allocations: 15.98 kB / 428.6 MB, free: 9.566 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * 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.0003595/0.1124, allocations: 347.7 kB / 429 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.1125, allocations: 86.81 kB / 429 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005457/0.113, allocations: 273.5 kB / 429.3 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.113, allocations: 4 kB / 429.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.1131, allocations: 0 / 429.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1131, allocations: 4 kB / 429.3 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005451/0.1136, allocations: 0.5762 MB / 429.9 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.1136, allocations: 0 / 429.9 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006397/0.1143, allocations: 87.91 kB / 430 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1143, allocations: 0 / 430 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.1143, allocations: 4 kB / 430 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1143, allocations: 4 kB / 430 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1143, allocations: 0 / 430 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007281/0.1151, allocations: 426.6 kB / 430.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000242/0.1153, allocations: 215.9 kB / 430.6 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.291e-05/0.1154, allocations: 7.938 kB / 430.6 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.1157, allocations: 23.97 kB / 430.6 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.793e-05/0.1157, allocations: 19.97 kB / 430.7 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.1158, allocations: 8 kB / 430.7 MB, free: 7.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001291/0.117, allocations: 1.141 MB / 431.8 MB, free: 6.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1171, allocations: 0 / 431.8 MB, free: 6.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003969/0.1175, allocations: 99.84 kB / 431.9 MB, free: 6.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (battery.integrator.q) * 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 (13): * Single equations (assignments): 13 * 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 Backend phase and start with SimCode phase: time 0.001495/0.119, allocations: 1.124 MB / 433 MB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000463/0.1194, allocations: 156.2 kB / 433.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1194, allocations: 0 / 433.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.1197, allocations: 79.89 kB / 433.3 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.1202, allocations: 70.3 kB / 433.3 MB, free: 4.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1533/0.2735, allocations: 9.055 MB / 442.4 MB, free: 55.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004839/0.274, allocations: 1.006 MB / 443.4 MB, free: 55.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002744/0.2743, allocations: 116.3 kB / 443.5 MB, free: 55.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003354/0.2747, allocations: 284.5 kB / 443.8 MB, free: 55.07 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2747, allocations: 0 / 443.8 MB, free: 55.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.3009, allocations: 14.62 MB / 458.4 MB, free: 54.12 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/0.3011, allocations: 217.3 kB / 458.6 MB, free: 53.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.15, allocations: 0 / 458.6 MB, free: 53.87 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Components.myBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Components.myBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Components.myBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Components.myBattery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Components_myBattery_fmu --startTime=0 --stopTime=144000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Components_myBattery.fmu > PowerSysPro_PowerSysPro.Components.myBattery.pipe 2>&1)