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.001471/0.00147, allocations: 114.8 kB / 17.13 MB, free: 5.926 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.001576/0.001576, allocations: 198.2 kB / 18.06 MB, free: 5.012 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.426/1.426, allocations: 222.9 MB / 241.8 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04674/0.04674, allocations: 8.095 MB / 300 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.91 kB / 415.1 MB, free: 21.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07853/0.07975, allocations: 51.53 MB / 466.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005613/0.0854, allocations: 4.604 MB / 471.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002905/0.08834, allocations: 1.763 MB / 473 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004595/0.08883, allocations: 8 kB / 473 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.08991, allocations: 0.494 MB / 473.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009473/0.09088, allocations: 394 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.002116/0.09301, allocations: 1.078 MB / 475 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.09414, allocations: 0.8256 MB / 475.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005278/0.09468, allocations: 333.5 kB / 476.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005045/0.09519, allocations: 386.7 kB / 476.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008398/0.09604, allocations: 0.5685 MB / 477.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001879/0.09624, allocations: 80 kB / 477.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006831/0.09694, allocations: 307.8 kB / 477.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003569/0.0973, allocations: 430.8 kB / 477.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006255/0.09794, allocations: 0.602 MB / 478.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001825/0.09977, allocations: 1.651 MB / 480.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.09979, allocations: 0 / 480.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.0998, allocations: 0 / 480.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.257e-05/0.09984, allocations: 0 / 480.2 MB, free: 4.602 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.004468/0.1043, allocations: 1.91 MB / 482.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1044, allocations: 11.89 kB / 482.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.1046, allocations: 147.2 kB / 482.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.1061, allocations: 0.966 MB / 483.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.1062, allocations: 228.1 kB / 483.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.482e-05/0.1063, allocations: 60.38 kB / 483.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.1078, allocations: 0.8318 MB / 484.3 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.1078, allocations: 0 / 484.3 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-05/0.1079, allocations: 28 kB / 484.3 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.1079, allocations: 16 kB / 484.3 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.1092, allocations: 0.6729 MB / 485 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005553/0.1148, allocations: 3.557 MB / 488.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.1171, allocations: 1.429 MB / 490 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008843/0.118, allocations: 0.5002 MB / 490.5 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001718/0.1182, allocations: 102.1 kB / 490.6 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009914/0.1192, allocations: 0.5476 MB / 491.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.635e-06/0.1192, allocations: 0 / 491.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.008316/0.1275, allocations: 2.527 MB / 493.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.1277, allocations: 274 kB / 493.9 MB, free: 6.219 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002494/0.1302, allocations: 1.783 MB / 495.7 MB, free: 4.418 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.1303, allocations: 41.7 kB / 495.8 MB, free: 4.371 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004486/0.1308, allocations: 493.5 kB / 496.2 MB, free: 3.883 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.1311, allocations: 291.8 kB / 496.5 MB, free: 3.594 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000246/0.1313, allocations: 146.6 kB / 496.7 MB, free: 3.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1314, allocations: 338 kB / 497 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006712/0.1321, allocations: 357.8 kB / 497.4 MB, free: 2.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007942/0.1329, allocations: 0.4949 MB / 497.9 MB, free: 2.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006147/0.1391, allocations: 1.952 MB / 499.8 MB, free: 260 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.1391, allocations: 4 kB / 499.8 MB, free: 256 kB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003429/0.1425, allocations: 1.415 MB / 0.4895 GB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.1426, allocations: 8 kB / 0.4895 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1426, allocations: 0 / 0.4895 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001844/0.1445, allocations: 0.5449 MB / 0.49 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.1449, allocations: 107.9 kB / 0.4901 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.1466, allocations: 1.185 MB / 0.4913 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000686/0.1473, allocations: 83.28 kB / 0.4914 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.232e-05/0.1474, allocations: 32 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.0006894/0.1481, allocations: 452.8 kB / 0.4918 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/0.1484, allocations: 122.5 kB / 0.4919 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.1519, allocations: 1.49 MB / 0.4934 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.1519, allocations: 11.98 kB / 0.4934 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1519, allocations: 4 kB / 0.4934 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.1519, allocations: 7.984 kB / 0.4934 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005972/0.1579, allocations: 3.138 MB / 0.4965 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.1579, allocations: 0 / 0.4965 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004045/0.1583, allocations: 99.88 kB / 0.4966 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.1601, allocations: 0.5316 MB / 0.4971 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-05/0.1602, allocations: 16 kB / 0.4971 GB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/0.1618, allocations: 1.162 MB / 0.4982 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1618, allocations: 0 / 0.4982 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004147/0.166, allocations: 2.001 MB / 0.5002 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004863/0.1665, allocations: 267.4 kB / 0.5005 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.1667, allocations: 31.98 kB / 0.5005 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006141/0.1673, allocations: 55.95 kB / 0.5005 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.1675, allocations: 68.91 kB / 0.5006 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-05/0.1676, allocations: 27.98 kB / 0.5006 GB, free: 3.215 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001834/0.1694, allocations: 1.281 MB / 0.5019 GB, free: 1.926 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1694, allocations: 7.938 kB / 0.5019 GB, free: 1.918 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007581/0.1702, allocations: 239.7 kB / 0.5021 GB, free: 1.684 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.0007115/0.1709, allocations: 295.8 kB / 0.5024 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002804/0.1737, allocations: 1.105 MB / 0.5035 GB, free: 368 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.1737, allocations: 0 / 0.5035 GB, free: 368 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1748/0.3486, allocations: 0.6747 MB / 0.5041 GB, free: 47.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.3498, allocations: 110.5 kB / 0.5042 GB, free: 47.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004942/0.3547, allocations: 2.563 MB / 0.5067 GB, free: 46.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008058/0.3556, allocations: 1.175 MB / 0.5079 GB, free: 45.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.3559, allocations: 83.38 kB / 0.508 GB, free: 45.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3559, allocations: 0 / 0.508 GB, free: 45.57 MB / 382.1 MB Notification: Performance of Templates: time 0.02692/0.3828, allocations: 19.57 MB / 0.5271 GB, free: 37.04 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)