Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",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.001289/0.001289, allocations: 108.6 kB / 16.45 MB, free: 6.438 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.001179/0.001179, allocations: 190 kB / 17.39 MB, free: 5.691 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.267/1.267, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04593/0.04593, allocations: 8.107 MB / 299.3 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 63.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08877, allocations: 51.52 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004618/0.09343, allocations: 3.146 MB / 468.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.09537, allocations: 1.156 MB / 469.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002935/0.09569, allocations: 8 kB / 469.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008901/0.09664, allocations: 449.3 kB / 470.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006023/0.09726, allocations: 266.8 kB / 470.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.09908, allocations: 0.9918 MB / 471.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006883/0.09978, allocations: 0.5139 MB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.1001, allocations: 165.4 kB / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003167/0.1004, allocations: 239.2 kB / 472.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005114/0.1009, allocations: 355 kB / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.101, allocations: 48 kB / 472.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005079/0.1015, allocations: 279.8 kB / 473.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002952/0.1018, allocations: 351 kB / 473.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003907/0.1022, allocations: 457.3 kB / 473.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.1035, allocations: 1.317 MB / 475.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1035, allocations: 4 kB / 475.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1036, allocations: 3.938 kB / 475.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.271e-05/0.1036, allocations: 0 / 475.2 MB, free: 8.934 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003887/0.1075, allocations: 1.545 MB / 476.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.1075, allocations: 19.89 kB / 476.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.1077, allocations: 70.59 kB / 476.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002366/0.1079, allocations: 111.5 kB / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.1093, allocations: 0.8681 MB / 477.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.801e-05/0.1095, allocations: 80.53 kB / 477.9 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.825e-05/0.1095, allocations: 24.38 kB / 477.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007891/0.1103, allocations: 456.8 kB / 478.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1103, allocations: 0 / 478.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.678e-05/0.1104, allocations: 12 kB / 478.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.1104, allocations: 4 kB / 478.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005957/0.111, allocations: 330 kB / 478.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.1143, allocations: 2.116 MB / 480.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009652/0.1152, allocations: 485.2 kB / 481.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.1157, allocations: 209.2 kB / 481.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001404/0.1158, allocations: 89.33 kB / 481.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.1158, allocations: 38.8 kB / 481.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.563e-06/0.1159, allocations: 0 / 481.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002363/0.1182, allocations: 0.8324 MB / 482.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.1184, allocations: 235.3 kB / 482.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.1207, allocations: 1.741 MB / 484.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.1207, allocations: 29.7 kB / 484.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.1211, allocations: 440.7 kB / 484.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.613e-05/0.1212, allocations: 94.64 kB / 485 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.1213, allocations: 73.44 kB / 485 MB, free: 14.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.401e-05/0.1214, allocations: 322 kB / 485.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.1217, allocations: 147.9 kB / 485.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003976/0.1221, allocations: 250 kB / 485.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003551/0.1257, allocations: 0.9501 MB / 486.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1257, allocations: 0 / 486.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001427/0.1272, allocations: 0.606 MB / 487.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1272, allocations: 7.984 kB / 487.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.1272, allocations: 4 kB / 487.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006314/0.1278, allocations: 140.7 kB / 487.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.1281, allocations: 79.83 kB / 487.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002334/0.1305, allocations: 2.039 MB / 489.6 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004462/0.131, allocations: 51.72 kB / 489.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.131, allocations: 12 kB / 489.6 MB, free: 9.848 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005038/0.1315, allocations: 401.6 kB / 490 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.1317, allocations: 94.78 kB / 490.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.133, allocations: 0.5779 MB / 490.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.133, allocations: 11.88 kB / 490.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1331, allocations: 0 / 490.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1331, allocations: 4 kB / 490.7 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002467/0.1355, allocations: 1.47 MB / 492.2 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1355, allocations: 0 / 492.2 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.1358, allocations: 55.97 kB / 492.2 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005849/0.1364, allocations: 148.7 kB / 492.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.1364, allocations: 15.98 kB / 492.4 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.1384, allocations: 2.016 MB / 494.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1384, allocations: 3.938 kB / 494.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.14, allocations: 0.8298 MB / 495.2 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003995/0.1404, allocations: 243.8 kB / 495.5 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.1405, allocations: 8 kB / 495.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003737/0.1409, allocations: 35.91 kB / 495.5 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.214e-05/0.141, allocations: 31.95 kB / 495.5 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.141, allocations: 8 kB / 495.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001521/0.1426, allocations: 1.264 MB / 496.8 MB, free: 2.367 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1426, allocations: 3.938 kB / 496.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005312/0.1431, allocations: 155.8 kB / 497 MB, free: 2.211 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.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 (25): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00226/0.1454, allocations: 1.537 MB / 498.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.1465, allocations: 0.5179 MB / 499 MB, free: 192 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1465, allocations: 3.938 kB / 499 MB, free: 188 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006467/0.1472, allocations: 351.3 kB / 499.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005429/0.1477, allocations: 83.09 kB / 499.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/0.1611, allocations: 10.13 MB / 0.4976 GB, free: 5.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007295/0.1619, allocations: 1.076 MB / 0.4987 GB, free: 4.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00028/0.1622, allocations: 141 kB / 0.4988 GB, free: 4.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004186/0.1626, allocations: 323.3 kB / 0.4991 GB, free: 3.906 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1626, allocations: 0 / 0.4991 GB, free: 3.906 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2335/0.3961, allocations: 21.2 MB / 0.5198 GB, free: 40.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.55, allocations: 11.2 kB / 0.5198 GB, free: 40.99 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad_fmu --startTime=0 --stopTime=360000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)