Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",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.0007443/0.0007442, allocations: 103 kB / 16.07 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008137/0.0008137, allocations: 180.7 kB / 16.96 MB, free: 6.879 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.253/1.253, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1544/0.1544, allocations: 8.083 MB / 300.2 MB, free: 2.938 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003408, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1027, allocations: 52.51 MB / 416.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003956/0.1067, allocations: 3.012 MB / 419.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.1086, allocations: 1.283 MB / 420.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1088, allocations: 8 kB / 420.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005205/0.1093, allocations: 163.2 kB / 420.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003784/0.1097, allocations: 155.1 kB / 420.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/0.1102, allocations: 211.3 kB / 420.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005262/0.1108, allocations: 0.5298 MB / 421.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.111, allocations: 144.7 kB / 421.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.1112, allocations: 175.2 kB / 421.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.1115, allocations: 203.1 kB / 422 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.875e-05/0.1115, allocations: 20 kB / 422 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.1117, allocations: 67.86 kB / 422.1 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.1119, allocations: 127.5 kB / 422.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002186/0.1121, allocations: 252.4 kB / 422.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005838/0.1127, allocations: 0.6071 MB / 423 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1127, allocations: 0 / 423 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1127, allocations: 7.938 kB / 423 MB, free: 1.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.1127, allocations: 0 / 423 MB, free: 1.332 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002148/0.1149, allocations: 0.9817 MB / 424 MB, free: 308 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1149, allocations: 8.031 kB / 424 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.493e-05/0.115, allocations: 70.72 kB / 424.1 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.54e-05/0.1151, allocations: 56.28 kB / 424.2 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1818/0.2969, allocations: 484.8 kB / 424.6 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/0.2972, allocations: 72.55 kB / 424.7 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.488e-05/0.2973, allocations: 27.66 kB / 424.7 MB, free: 41.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006869/0.298, allocations: 408.5 kB / 425.1 MB, free: 41.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.298, allocations: 3.188 kB / 425.1 MB, free: 41.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.298, allocations: 12.59 kB / 425.1 MB, free: 41.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.298, allocations: 12.31 kB / 425.2 MB, free: 41.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005018/0.2985, allocations: 267.7 kB / 425.4 MB, free: 41.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.3006, allocations: 1.543 MB / 427 MB, free: 40.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006192/0.3012, allocations: 325.2 kB / 427.3 MB, free: 40.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.3015, allocations: 130.1 kB / 427.4 MB, free: 40.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.3016, allocations: 3.375 kB / 427.4 MB, free: 40.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.3016, allocations: 35 kB / 427.4 MB, free: 40.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.723e-06/0.3016, allocations: 0 / 427.4 MB, free: 40.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008189/0.3024, allocations: 348.6 kB / 427.8 MB, free: 40.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.3025, allocations: 217 kB / 428 MB, free: 40.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006018/0.3031, allocations: 0.5744 MB / 428.6 MB, free: 40.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.3031, allocations: 32.58 kB / 428.6 MB, free: 40.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.3033, allocations: 259 kB / 428.9 MB, free: 39.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.3033, allocations: 44.5 kB / 428.9 MB, free: 39.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.769e-05/0.3034, allocations: 23.44 kB / 428.9 MB, free: 39.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.3035, allocations: 362.7 kB / 429.3 MB, free: 39.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/0.3037, allocations: 110.3 kB / 429.4 MB, free: 39.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002912/0.304, allocations: 238 kB / 429.6 MB, free: 39.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.3045, allocations: 225.4 kB / 429.8 MB, free: 39.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3045, allocations: 0 / 429.8 MB, free: 39.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006488/0.3051, allocations: 329.5 kB / 430.2 MB, free: 39.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.3052, allocations: 8.438 kB / 430.2 MB, free: 39.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.3052, allocations: 3.641 kB / 430.2 MB, free: 39.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.3052, allocations: 3.125 kB / 430.2 MB, free: 39.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.3054, allocations: 55.06 kB / 430.2 MB, free: 39.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3055, allocations: 3.891 kB / 430.2 MB, free: 39.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006155/0.3061, allocations: 143.4 kB / 430.4 MB, free: 39.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.3061, allocations: 14.41 kB / 430.4 MB, free: 39.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001588/0.3063, allocations: 185.4 kB / 430.6 MB, free: 39.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.3064, allocations: 45.16 kB / 430.6 MB, free: 39.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006708/0.307, allocations: 289.7 kB / 430.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.307, allocations: 2.875 kB / 430.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.3071, allocations: 8.594 kB / 430.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3071, allocations: 2.312 kB / 430.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.3081, allocations: 0.7876 MB / 431.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3081, allocations: 0 / 431.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.3083, allocations: 35.92 kB / 431.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3083, allocations: 0 / 431.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.3083, allocations: 11.31 kB / 431.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3083, allocations: 0 / 431.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3083, allocations: 10.47 kB / 431.7 MB, free: 38.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008091/0.3092, allocations: 0.4943 MB / 432.2 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.3093, allocations: 165.3 kB / 432.4 MB, free: 38.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.994e-05/0.3094, allocations: 7 kB / 432.4 MB, free: 38.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006597/0.31, allocations: 144 kB / 432.6 MB, free: 38.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.3103, allocations: 124.9 kB / 432.7 MB, free: 38.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.3103, allocations: 6.219 kB / 432.7 MB, free: 38.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003994/0.3107, allocations: 429.4 kB / 433.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3107, allocations: 0 / 433.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003861/0.3111, allocations: 100.5 kB / 433.2 MB, free: 38.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * 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.001689/0.3128, allocations: 1.291 MB / 434.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006178/0.3135, allocations: 262 kB / 434.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3135, allocations: 4 kB / 434.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003327/0.3138, allocations: 157.1 kB / 434.9 MB, free: 37.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006216/0.3144, allocations: 103.7 kB / 435 MB, free: 37.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005409/0.3199, allocations: 4.622 MB / 439.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.3201, allocations: 0.8281 MB / 440.5 MB, free: 34.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.3204, allocations: 68.61 kB / 440.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.3206, allocations: 146 kB / 440.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3206, allocations: 0 / 440.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3657/0.6863, allocations: 10.8 MB / 451.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.6865, allocations: 252.4 kB / 451.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/2.721, allocations: 0 / 451.7 MB, free: 33.73 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)