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.001465/0.001465, allocations: 105.2 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.001623/0.001623, allocations: 186.9 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.252/1.252, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04658/0.04658, allocations: 8.104 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.91 kB / 414 MB, free: 22.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09666, allocations: 51.52 MB / 465.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.005285/0.102, allocations: 3.135 MB / 468.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.1043, allocations: 1.168 MB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003815/0.1047, allocations: 8 kB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.1058, allocations: 449.3 kB / 470.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007276/0.1065, allocations: 258.8 kB / 470.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001944/0.1085, allocations: 0.9997 MB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009352/0.1095, allocations: 0.51 MB / 472 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003424/0.1098, allocations: 161.4 kB / 472.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003874/0.1102, allocations: 239.2 kB / 472.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00062/0.1108, allocations: 355 kB / 472.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001435/0.111, allocations: 51.94 kB / 472.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006531/0.1116, allocations: 279.8 kB / 473.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003417/0.112, allocations: 351 kB / 473.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000571/0.1126, allocations: 457.3 kB / 473.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.1143, allocations: 1.321 MB / 475.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1143, allocations: 0 / 475.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1143, allocations: 0 / 475.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.039e-05/0.1144, allocations: 0 / 475.2 MB, free: 8.969 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.004093/0.1185, allocations: 1.545 MB / 476.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.1185, allocations: 19.89 kB / 476.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.1187, allocations: 66.66 kB / 476.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.1189, allocations: 115.5 kB / 476.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.1203, allocations: 0.872 MB / 477.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-05/0.1204, allocations: 76.53 kB / 477.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.47e-05/0.1204, allocations: 28.38 kB / 477.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008063/0.1213, allocations: 464.8 kB / 478.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1213, allocations: 0 / 478.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.834e-05/0.1213, allocations: 12 kB / 478.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.1213, allocations: 4 kB / 478.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00063/0.122, allocations: 326 kB / 478.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003368/0.1254, allocations: 2.116 MB / 480.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009769/0.1263, allocations: 477.2 kB / 481.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004207/0.1268, allocations: 221.2 kB / 481.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001288/0.1269, allocations: 85.33 kB / 481.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.127, allocations: 38.8 kB / 481.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.127, allocations: 0 / 481.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00225/0.1292, allocations: 0.8285 MB / 482.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.1294, allocations: 239.3 kB / 482.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/0.1316, allocations: 1.733 MB / 484.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.1316, allocations: 37.64 kB / 484.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003745/0.132, allocations: 440.7 kB / 484.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.715e-05/0.1321, allocations: 94.56 kB / 485 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.1322, allocations: 73.44 kB / 485 MB, free: 14.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1324, allocations: 318 kB / 485.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003088/0.1327, allocations: 155.9 kB / 485.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003813/0.1331, allocations: 250 kB / 485.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003416/0.1365, allocations: 0.9462 MB / 486.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1365, allocations: 0 / 486.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001377/0.1379, allocations: 0.6099 MB / 487.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1379, allocations: 4 kB / 487.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1379, allocations: 4 kB / 487.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006529/0.1386, allocations: 144.7 kB / 487.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.1389, allocations: 75.89 kB / 487.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.1414, allocations: 2.031 MB / 489.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004481/0.1419, allocations: 47.73 kB / 489.6 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.142, allocations: 11.98 kB / 489.6 MB, free: 9.887 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.0005429/0.1425, allocations: 397.8 kB / 490 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.1427, allocations: 94.78 kB / 490.1 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.1441, allocations: 0.5896 MB / 490.7 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1441, allocations: 7.938 kB / 490.7 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1441, allocations: 4 kB / 490.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1441, allocations: 7.922 kB / 490.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.1466, allocations: 1.47 MB / 492.2 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1466, allocations: 0 / 492.2 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.1468, allocations: 55.95 kB / 492.2 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006132/0.1475, allocations: 148.7 kB / 492.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.1475, allocations: 8 kB / 492.4 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/0.1497, allocations: 2.016 MB / 494.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1497, allocations: 3.938 kB / 494.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.1513, allocations: 0.8337 MB / 495.2 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.1516, allocations: 239.8 kB / 495.5 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.1517, allocations: 8 kB / 495.5 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.1521, allocations: 39.89 kB / 495.5 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.35e-05/0.1522, allocations: 31.95 kB / 495.5 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.1523, allocations: 12 kB / 495.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001571/0.1538, allocations: 1.264 MB / 496.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1538, allocations: 3.938 kB / 496.8 MB, free: 2.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005662/0.1544, allocations: 151.8 kB / 497 MB, free: 2.242 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.002403/0.1568, allocations: 1.543 MB / 498.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.158, allocations: 0.514 MB / 499 MB, free: 220 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.158, allocations: 7.875 kB / 499 MB, free: 212 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.1587, allocations: 347.2 kB / 499.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005807/0.1593, allocations: 80.41 kB / 499.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/0.1738, allocations: 10.12 MB / 0.4976 GB, free: 5.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.1745, allocations: 1.076 MB / 0.4987 GB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002867/0.1748, allocations: 129.1 kB / 0.4988 GB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/0.1753, allocations: 327.3 kB / 0.4991 GB, free: 3.945 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1753, allocations: 0 / 0.4991 GB, free: 3.945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2313/0.4066, allocations: 21.22 MB / 0.5198 GB, free: 41.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.82, allocations: 11.95 kB / 0.5199 GB, free: 41.04 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)