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.001613/0.001613, allocations: 107.1 kB / 16.45 MB, free: 6.035 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.001709/0.001709, allocations: 188.8 kB / 17.39 MB, free: 5.559 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.45/1.45, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05357/0.05357, allocations: 8.102 MB / 299.4 MB, free: 6.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 68.03 kB / 414 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.102, allocations: 51.51 MB / 465.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004938/0.1069, allocations: 3.37 MB / 468.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.1091, allocations: 1.329 MB / 470.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.1094, allocations: 11.94 kB / 470.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005393/0.1099, allocations: 171 kB / 470.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004039/0.1103, allocations: 186.8 kB / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005703/0.1109, allocations: 243.2 kB / 470.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006198/0.1115, allocations: 0.5377 MB / 471.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.1118, allocations: 156.8 kB / 471.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.1121, allocations: 215.1 kB / 471.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.1124, allocations: 223 kB / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.427e-05/0.1125, allocations: 44 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.1127, allocations: 95.97 kB / 472.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.1129, allocations: 167.5 kB / 472.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.1132, allocations: 258.6 kB / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007437/0.1139, allocations: 0.6498 MB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1139, allocations: 0 / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1139, allocations: 0 / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.114, allocations: 0 / 473.2 MB, free: 10.95 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.002237/0.1162, allocations: 1.02 MB / 474.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1162, allocations: 15.89 kB / 474.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.535e-05/0.1163, allocations: 66.72 kB / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.1165, allocations: 60.56 kB / 474.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007872/0.1173, allocations: 0.491 MB / 474.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.1173, allocations: 20.94 kB / 474.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.1174, allocations: 31.88 kB / 474.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000712/0.1181, allocations: 401.6 kB / 475.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1181, allocations: 0 / 475.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.1181, allocations: 12 kB / 475.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.1182, allocations: 8 kB / 475.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005339/0.1187, allocations: 250.1 kB / 475.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.1211, allocations: 1.492 MB / 477 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005704/0.1217, allocations: 287.5 kB / 477.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000235/0.1219, allocations: 100.9 kB / 477.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.122, allocations: 11.94 kB / 477.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.122, allocations: 34.5 kB / 477.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.122, allocations: 0 / 477.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007918/0.1228, allocations: 313.5 kB / 477.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001478/0.123, allocations: 209.6 kB / 478 MB, free: 5.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007542/0.1237, allocations: 0.5799 MB / 478.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1238, allocations: 25.7 kB / 478.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.124, allocations: 272.1 kB / 478.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.739e-05/0.124, allocations: 47.58 kB / 478.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.781e-05/0.1241, allocations: 45.7 kB / 478.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.1243, allocations: 354.8 kB / 479.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.1246, allocations: 95.92 kB / 479.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000349/0.1249, allocations: 218.5 kB / 479.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.1254, allocations: 197 kB / 479.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1254, allocations: 0 / 479.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006244/0.126, allocations: 305 kB / 480.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.126, allocations: 4 kB / 480.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.126, allocations: 7.938 kB / 480.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.1261, allocations: 4 kB / 480.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.1263, allocations: 52.22 kB / 480.1 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1263, allocations: 4 kB / 480.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005873/0.1269, allocations: 99.72 kB / 480.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.1269, allocations: 12 kB / 480.2 MB, free: 3.426 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.0002187/0.1272, allocations: 185.7 kB / 480.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/0.1273, allocations: 43.72 kB / 480.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006423/0.1279, allocations: 261.2 kB / 480.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1279, allocations: 4 kB / 480.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1279, allocations: 4 kB / 480.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1279, allocations: 3.984 kB / 480.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.1291, allocations: 0.7527 MB / 481.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1291, allocations: 0 / 481.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.1293, allocations: 32.02 kB / 481.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.1293, allocations: 0 / 481.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.1293, allocations: 8 kB / 481.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.1293, allocations: 3.984 kB / 481.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1293, allocations: 0 / 481.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008143/0.1302, allocations: 471.8 kB / 482 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.1304, allocations: 160.8 kB / 482.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.379e-05/0.1304, allocations: 7.938 kB / 482.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006545/0.1311, allocations: 99.92 kB / 482.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000286/0.1314, allocations: 123.8 kB / 482.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.1314, allocations: 8 kB / 482.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005578/0.132, allocations: 423.1 kB / 482.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.132, allocations: 0 / 482.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004195/0.1324, allocations: 103.9 kB / 482.9 MB, free: 0.6602 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.002529/0.135, allocations: 1.247 MB / 484.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006876/0.1357, allocations: 231.7 kB / 484.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1357, allocations: 0 / 484.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.136, allocations: 140.5 kB / 484.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006586/0.1367, allocations: 118 kB / 484.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008337/0.145, allocations: 4.303 MB / 488.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.1456, allocations: 0.8269 MB / 489.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002914/0.1459, allocations: 63.27 kB / 489.8 MB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.1462, allocations: 155.4 kB / 490 MB, free: 9.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.1462, allocations: 0 / 490 MB, free: 9.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04572/0.1919, allocations: 12.54 MB / 0.4907 GB, free: 13.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.829/9.021, allocations: 8 kB / 0.4907 GB, free: 13.16 MB / 382.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)