Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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: translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 115.8 kB / 17.13 MB, free: 5.934 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.00113/0.001131, allocations: 193.2 kB / 18.06 MB, free: 5.02 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.329/1.329, allocations: 222.9 MB / 241.8 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.04541/0.04541, allocations: 8.103 MB / 300 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 55.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08734/0.08856, allocations: 51.51 MB / 466.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005893/0.0945, allocations: 4.607 MB / 471.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003025/0.09755, allocations: 1.756 MB / 473 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005988/0.09818, allocations: 12 kB / 473 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001138/0.09935, allocations: 0.4902 MB / 473.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001073/0.1005, allocations: 397.9 kB / 473.9 MB, free: 10.86 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.002296/0.1028, allocations: 1.078 MB / 475 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.1041, allocations: 0.8294 MB / 475.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005889/0.1047, allocations: 333.5 kB / 476.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00063/0.1053, allocations: 386.7 kB / 476.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009622/0.1063, allocations: 0.5724 MB / 477.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000197/0.1065, allocations: 80 kB / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007464/0.1072, allocations: 307.7 kB / 477.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004008/0.1076, allocations: 426.8 kB / 477.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007341/0.1084, allocations: 0.6059 MB / 478.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001893/0.1103, allocations: 1.655 MB / 480.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1103, allocations: 0 / 480.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1103, allocations: 0 / 480.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.456e-05/0.1104, allocations: 0 / 480.2 MB, free: 4.594 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.005626/0.116, allocations: 1.902 MB / 482.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.116, allocations: 8.031 kB / 482.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003129/0.1164, allocations: 147.2 kB / 482.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.1178, allocations: 0.9621 MB / 483.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002595/0.1181, allocations: 228 kB / 483.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.1182, allocations: 64.38 kB / 483.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1197, allocations: 0.8357 MB / 484.3 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.1197, allocations: 4 kB / 484.3 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.7e-05/0.1198, allocations: 28 kB / 484.3 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.1198, allocations: 16 kB / 484.4 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.121, allocations: 0.6689 MB / 485 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005377/0.1264, allocations: 3.55 MB / 488.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002246/0.1287, allocations: 1.428 MB / 490 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008456/0.1295, allocations: 0.508 MB / 490.5 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001733/0.1297, allocations: 98.08 kB / 490.6 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001003/0.1307, allocations: 0.5554 MB / 491.2 MB, free: 9.105 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 3.075e-06/0.1307, allocations: 0 / 491.2 MB, free: 9.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.007823/0.1386, allocations: 2.519 MB / 493.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.1387, allocations: 274 kB / 493.9 MB, free: 6.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002348/0.1411, allocations: 1.787 MB / 495.7 MB, free: 4.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.49e-05/0.1412, allocations: 45.7 kB / 495.8 MB, free: 4.371 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004171/0.1416, allocations: 489.6 kB / 496.3 MB, free: 3.887 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002486/0.1418, allocations: 291.8 kB / 496.5 MB, free: 3.598 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.1421, allocations: 142.7 kB / 496.7 MB, free: 3.453 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1422, allocations: 337.9 kB / 497 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006454/0.1429, allocations: 361.8 kB / 497.4 MB, free: 2.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007412/0.1436, allocations: 498.8 kB / 497.8 MB, free: 2.234 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005938/0.1496, allocations: 1.952 MB / 499.8 MB, free: 272 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1496, allocations: 0 / 499.8 MB, free: 272 kB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003242/0.1528, allocations: 1.415 MB / 0.4895 GB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.1529, allocations: 15.92 kB / 0.4895 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.1529, allocations: 0 / 0.4895 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001792/0.1547, allocations: 0.5449 MB / 0.49 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/0.1551, allocations: 115.8 kB / 0.4901 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001663/0.1568, allocations: 1.181 MB / 0.4913 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006035/0.1574, allocations: 83.28 kB / 0.4914 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.107e-05/0.1575, allocations: 35.97 kB / 0.4914 GB, free: 12.84 MB / 382.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: 7 * Number of states: 0 () * Number of discrete variables: 10 (delay.firstTrigger,$PRE.delay.firstTrigger,$whenCondition2,delay.sampleTrigger,$whenCondition1,$PRE.delay.y,delay.y,o.y,n1.y,n2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {(12,22)} Notification: Performance of prepare postOptimizeDAE: time 0.000627/0.1581, allocations: 453.6 kB / 0.4918 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.1583, allocations: 122.5 kB / 0.4919 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/0.1617, allocations: 1.483 MB / 0.4934 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.1617, allocations: 8 kB / 0.4934 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1617, allocations: 0 / 0.4934 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.1617, allocations: 3.984 kB / 0.4934 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005342/0.1671, allocations: 3.142 MB / 0.4965 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1671, allocations: 7.938 kB / 0.4965 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003782/0.1675, allocations: 103.8 kB / 0.4966 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/0.1691, allocations: 0.5238 MB / 0.4971 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.1692, allocations: 27.98 kB / 0.4971 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.1708, allocations: 1.158 MB / 0.4982 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1708, allocations: 0 / 0.4982 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004/0.1748, allocations: 1.997 MB / 0.5002 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003817/0.1752, allocations: 275.3 kB / 0.5005 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.1753, allocations: 19.94 kB / 0.5005 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/0.1759, allocations: 56.02 kB / 0.5005 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.1761, allocations: 72.89 kB / 0.5006 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.653e-05/0.1761, allocations: 24 kB / 0.5006 GB, free: 3.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001691/0.1778, allocations: 1.285 MB / 0.5019 GB, free: 1.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1778, allocations: 0 / 0.5019 GB, free: 1.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006871/0.1785, allocations: 243.7 kB / 0.5021 GB, free: 1.691 MB / 382.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: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(12,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007114/0.1793, allocations: 297 kB / 0.5024 GB, free: 1.469 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002718/0.182, allocations: 1.101 MB / 0.5035 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.182, allocations: 0 / 0.5035 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1825/0.3646, allocations: 0.6737 MB / 0.5041 GB, free: 47.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008947/0.3655, allocations: 116.9 kB / 0.5042 GB, free: 47.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00429/0.3698, allocations: 2.556 MB / 0.5067 GB, free: 46.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/0.3705, allocations: 1.171 MB / 0.5079 GB, free: 46.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002518/0.3707, allocations: 83.31 kB / 0.508 GB, free: 46 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3707, allocations: 0 / 0.508 GB, free: 46 MB / 382.1 MB Notification: Performance of Templates: time 0.0222/0.3929, allocations: 19.41 MB / 0.5269 GB, free: 37.41 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)