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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001144/0.001144, allocations: 108.9 kB / 16.45 MB, free: 6.43 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.001387/0.001388, allocations: 187 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.484/1.484, 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/package.mo): time 0.04969/0.04969, allocations: 8.097 MB / 299.3 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.91 kB / 414.5 MB, free: 21.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.106, allocations: 51.52 MB / 466 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.00694/0.113, allocations: 4.608 MB / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.1162, allocations: 1.759 MB / 472.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005324/0.1167, allocations: 8 kB / 472.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.1178, allocations: 0.4941 MB / 472.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009476/0.1188, allocations: 397.9 kB / 473.3 MB, free: 10.86 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.002016/0.1208, allocations: 1.07 MB / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.1219, allocations: 0.8333 MB / 475.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004888/0.1224, allocations: 329.5 kB / 475.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.1229, allocations: 386.7 kB / 475.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007581/0.1236, allocations: 0.5685 MB / 476.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.1238, allocations: 84 kB / 476.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005946/0.1244, allocations: 307.8 kB / 476.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000343/0.1247, allocations: 430.7 kB / 477.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005873/0.1253, allocations: 0.6059 MB / 477.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001743/0.1271, allocations: 1.647 MB / 479.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1271, allocations: 0 / 479.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1271, allocations: 0 / 479.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.13e-05/0.1271, allocations: 0 / 479.5 MB, free: 4.605 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.005624/0.1328, allocations: 1.91 MB / 481.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.1329, allocations: 12.03 kB / 481.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005596/0.1334, allocations: 147.2 kB / 481.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.1353, allocations: 0.966 MB / 482.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.1355, allocations: 220.1 kB / 482.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.1356, allocations: 64.36 kB / 482.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.1372, allocations: 0.8357 MB / 483.6 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1372, allocations: 0 / 483.6 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.556e-05/0.1373, allocations: 24 kB / 483.7 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.1373, allocations: 16 kB / 483.7 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.1386, allocations: 0.6768 MB / 484.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005509/0.1441, allocations: 3.554 MB / 487.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002257/0.1464, allocations: 1.428 MB / 489.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009012/0.1473, allocations: 0.4971 MB / 489.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/0.1475, allocations: 106 kB / 489.9 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.1485, allocations: 0.5476 MB / 490.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.795e-06/0.1485, allocations: 0 / 490.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.008482/0.157, allocations: 2.527 MB / 493 MB, free: 6.562 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.1572, allocations: 274 kB / 493.3 MB, free: 6.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002763/0.16, allocations: 1.783 MB / 495.1 MB, free: 4.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.35e-05/0.16, allocations: 41.7 kB / 495.1 MB, free: 4.383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004611/0.1605, allocations: 493.6 kB / 495.6 MB, free: 3.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00026/0.1608, allocations: 287.8 kB / 495.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002515/0.161, allocations: 146.6 kB / 496 MB, free: 3.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1612, allocations: 338 kB / 496.3 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006923/0.1619, allocations: 361.8 kB / 496.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008226/0.1627, allocations: 0.4949 MB / 497.2 MB, free: 2.234 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006384/0.1691, allocations: 1.952 MB / 499.1 MB, free: 272 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1692, allocations: 0 / 499.1 MB, free: 272 kB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003612/0.1728, allocations: 1.415 MB / 0.4888 GB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.1728, allocations: 7.938 kB / 0.4888 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1728, allocations: 4 kB / 0.4888 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/0.1747, allocations: 0.5487 MB / 0.4894 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.1752, allocations: 111.9 kB / 0.4895 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.177, allocations: 1.178 MB / 0.4906 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000729/0.1777, allocations: 91.22 kB / 0.4907 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/0.1778, allocations: 28 kB / 0.4907 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.0007701/0.1786, allocations: 453 kB / 0.4912 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002822/0.1789, allocations: 118.5 kB / 0.4913 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.1826, allocations: 1.498 MB / 0.4927 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.1826, allocations: 8 kB / 0.4927 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1826, allocations: 4 kB / 0.4928 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.1826, allocations: 3.984 kB / 0.4928 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006072/0.1887, allocations: 3.13 MB / 0.4958 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1887, allocations: 3.938 kB / 0.4958 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004213/0.1892, allocations: 107.9 kB / 0.4959 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/0.191, allocations: 0.5318 MB / 0.4964 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.914e-05/0.1911, allocations: 16 kB / 0.4965 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/0.1928, allocations: 1.162 MB / 0.4976 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1928, allocations: 4 kB / 0.4976 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004376/0.1972, allocations: 1.997 MB / 0.4995 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004773/0.1977, allocations: 271.4 kB / 0.4998 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.1979, allocations: 23.92 kB / 0.4998 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/0.1985, allocations: 55.95 kB / 0.4999 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.1987, allocations: 68.91 kB / 0.4999 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.944e-05/0.1988, allocations: 27.98 kB / 0.5 GB, free: 3.227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001916/0.2007, allocations: 1.285 MB / 0.5012 GB, free: 1.934 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2007, allocations: 0 / 0.5012 GB, free: 1.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007758/0.2015, allocations: 239.7 kB / 0.5015 GB, free: 1.699 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.0007294/0.2022, allocations: 297.6 kB / 0.5017 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003057/0.2053, allocations: 1.105 MB / 0.5028 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.2053, allocations: 0 / 0.5028 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2114/0.4167, allocations: 0.6755 MB / 0.5035 GB, free: 47.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.4178, allocations: 105.7 kB / 0.5036 GB, free: 47.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004693/0.4225, allocations: 2.483 MB / 0.506 GB, free: 46.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.4232, allocations: 1.173 MB / 0.5071 GB, free: 45.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004065/0.4236, allocations: 168 kB / 0.5073 GB, free: 45.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.4239, allocations: 75.97 kB / 0.5074 GB, free: 45.62 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4239, allocations: 0 / 0.5074 GB, free: 45.62 MB / 382.1 MB Notification: Performance of Templates: time 0.02725/0.4511, allocations: 15.52 MB / 0.5225 GB, free: 40.72 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)