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.001159/0.001159, allocations: 106.3 kB / 16.45 MB, free: 6.445 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.001183/0.001183, allocations: 190 kB / 17.39 MB, free: 5.688 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.314/1.314, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05092/0.05092, allocations: 8.094 MB / 299.3 MB, free: 6.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 55.91 kB / 414 MB, free: 22.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.1002, allocations: 51.52 MB / 465.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005127/0.1053, allocations: 3.368 MB / 468.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.1078, allocations: 1.325 MB / 470.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.1082, allocations: 7.938 kB / 470.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006854/0.109, allocations: 175.5 kB / 470.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00065/0.1097, allocations: 178.8 kB / 470.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007253/0.1104, allocations: 251.2 kB / 470.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000808/0.1112, allocations: 0.5377 MB / 471.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003304/0.1116, allocations: 157 kB / 471.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003982/0.112, allocations: 223.1 kB / 471.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004202/0.1124, allocations: 219.1 kB / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.499e-05/0.1125, allocations: 47.94 kB / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002555/0.1128, allocations: 91.97 kB / 472.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.113, allocations: 167.5 kB / 472.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003635/0.1134, allocations: 254.7 kB / 472.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008141/0.1142, allocations: 0.6502 MB / 473.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1142, allocations: 0 / 473.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1142, allocations: 0 / 473.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.013e-05/0.1143, allocations: 4 kB / 473.2 MB, free: 10.89 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.002415/0.1167, allocations: 1.005 MB / 474.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1167, allocations: 11.89 kB / 474.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.69e-05/0.1168, allocations: 62.73 kB / 474.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.117, allocations: 56.28 kB / 474.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008571/0.1179, allocations: 0.4906 MB / 474.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.1179, allocations: 24.94 kB / 474.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.118, allocations: 27.94 kB / 474.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006789/0.1186, allocations: 389.6 kB / 475.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1187, allocations: 0 / 475.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.1187, allocations: 12 kB / 475.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.1187, allocations: 4 kB / 475.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004975/0.1192, allocations: 258 kB / 475.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/0.1216, allocations: 1.488 MB / 477 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/0.1222, allocations: 295.4 kB / 477.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.1224, allocations: 108.7 kB / 477.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.1225, allocations: 0 / 477.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.1225, allocations: 42.55 kB / 477.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 9.82e-07/0.1225, allocations: 0 / 477.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007559/0.1233, allocations: 305.2 kB / 477.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.1234, allocations: 213.6 kB / 477.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000753/0.1241, allocations: 0.576 MB / 478.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.1242, allocations: 25.7 kB / 478.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.1244, allocations: 267.7 kB / 478.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.1244, allocations: 47.36 kB / 478.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.1245, allocations: 45.72 kB / 478.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1247, allocations: 354.8 kB / 479.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002187/0.1249, allocations: 95.94 kB / 479.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003207/0.1253, allocations: 220.1 kB / 479.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003629/0.1256, allocations: 197.2 kB / 479.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1257, allocations: 8 kB / 479.7 MB, free: 3.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006037/0.1263, allocations: 288.8 kB / 480 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1263, allocations: 8.312 kB / 480 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1263, allocations: 11.94 kB / 480 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1263, allocations: 4 kB / 480 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.1265, allocations: 43.91 kB / 480.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.1266, allocations: 4 kB / 480.1 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005705/0.1271, allocations: 111.6 kB / 480.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.1272, allocations: 15.98 kB / 480.2 MB, free: 3.398 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.0002138/0.1274, allocations: 181.8 kB / 480.4 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.646e-05/0.1275, allocations: 43.53 kB / 480.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006139/0.1281, allocations: 257.2 kB / 480.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1281, allocations: 0 / 480.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1281, allocations: 3.984 kB / 480.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1282, allocations: 0 / 480.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.1293, allocations: 0.7603 MB / 481.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.1293, allocations: 0 / 481.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.1295, allocations: 31.92 kB / 481.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.1295, allocations: 4 kB / 481.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.1295, allocations: 3.984 kB / 481.5 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1295, allocations: 4 kB / 481.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.1295, allocations: 0 / 481.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000762/0.1303, allocations: 463.7 kB / 481.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.1305, allocations: 156.5 kB / 482.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.28e-05/0.1306, allocations: 8 kB / 482.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005695/0.1311, allocations: 95.92 kB / 482.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002592/0.1314, allocations: 127.8 kB / 482.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.1314, allocations: 12 kB / 482.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005132/0.132, allocations: 427.1 kB / 482.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.132, allocations: 0 / 482.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004323/0.1324, allocations: 103.8 kB / 482.8 MB, free: 0.6445 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.001813/0.1342, allocations: 1.26 MB / 484.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005459/0.1348, allocations: 227.7 kB / 484.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1348, allocations: 0.625 kB / 484.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.1351, allocations: 139.8 kB / 484.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006338/0.1357, allocations: 102.9 kB / 484.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006226/0.142, allocations: 4.288 MB / 488.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.1424, allocations: 0.8231 MB / 489.7 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002718/0.1427, allocations: 67.23 kB / 489.7 MB, free: 9.676 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.143, allocations: 155.4 kB / 489.9 MB, free: 9.523 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.143, allocations: 0 / 489.9 MB, free: 9.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03563/0.1786, allocations: 12.79 MB / 0.4909 GB, free: 12.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.988/8.167, allocations: 12.56 kB / 0.4909 GB, free: 12.91 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)