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.003895/0.003895, allocations: 93.08 kB / 15.91 MB, free: 6.281 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.0009643/0.0009643, allocations: 202.3 kB / 16.84 MB, free: 6.195 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.195/1.195, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1368/0.1368, allocations: 8.09 MB / 298.7 MB, free: 2.082 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0009651/0.0009651, allocations: 63.91 kB / 361 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07967/0.08064, allocations: 51.52 MB / 412.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005267/0.08596, allocations: 4.605 MB / 417.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002134/0.08812, allocations: 1.736 MB / 418.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.08829, allocations: 12 kB / 418.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007272/0.08903, allocations: 474.8 kB / 419.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000497/0.08954, allocations: 354.4 kB / 419.7 MB, free: 2.91 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.001556/0.0911, allocations: 1.024 MB / 420.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006315/0.09174, allocations: 0.7944 MB / 421.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003469/0.0921, allocations: 293.1 kB / 421.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.09236, allocations: 338.8 kB / 422.1 MB, free: 476 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005481/0.09292, allocations: 0.5685 MB / 422.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.994e-05/0.09302, allocations: 52 kB / 422.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004128/0.09344, allocations: 271.8 kB / 423 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002726/0.09372, allocations: 402.7 kB / 423.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004006/0.09413, allocations: 0.5591 MB / 424 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.09531, allocations: 1.601 MB / 425.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.09532, allocations: 0 / 425.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.09533, allocations: 4 kB / 425.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.09535, allocations: 0 / 425.6 MB, free: 13.01 MB / 366.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.003676/0.09903, allocations: 1.906 MB / 427.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.766e-05/0.09906, allocations: 16.03 kB / 427.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.09927, allocations: 143.2 kB / 427.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.1004, allocations: 0.966 MB / 428.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.1005, allocations: 228 kB / 428.8 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.101e-05/0.1006, allocations: 56.38 kB / 428.9 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.1019, allocations: 0.8396 MB / 429.7 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1019, allocations: 0 / 429.7 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.102, allocations: 28 kB / 429.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.102, allocations: 12 kB / 429.8 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.1031, allocations: 0.6806 MB / 430.5 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004347/0.1074, allocations: 3.561 MB / 434 MB, free: 4.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001976/0.1094, allocations: 1.429 MB / 435.4 MB, free: 2.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007919/0.1102, allocations: 0.5079 MB / 436 MB, free: 2.188 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.1104, allocations: 102.1 kB / 436.1 MB, free: 2.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008963/0.1113, allocations: 0.5437 MB / 436.6 MB, free: 1.508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.195e-06/0.1113, allocations: 0 / 436.6 MB, free: 1.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.142/0.2532, allocations: 2.526 MB / 439.1 MB, free: 56.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.2533, allocations: 271.9 kB / 439.4 MB, free: 56.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.2549, allocations: 1.781 MB / 441.2 MB, free: 56.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.255, allocations: 45.05 kB / 441.2 MB, free: 56.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.2553, allocations: 490 kB / 441.7 MB, free: 56.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.2555, allocations: 291.6 kB / 442 MB, free: 56.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.2556, allocations: 144.3 kB / 442.1 MB, free: 56.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.568e-05/0.2557, allocations: 338 kB / 442.4 MB, free: 55.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005498/0.2563, allocations: 360.8 kB / 442.8 MB, free: 55.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005958/0.2569, allocations: 0.4942 MB / 443.3 MB, free: 55.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005246/0.2621, allocations: 1.948 MB / 445.2 MB, free: 55.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2621, allocations: 4.812 kB / 445.2 MB, free: 55.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002689/0.2648, allocations: 1.409 MB / 446.7 MB, free: 54.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2648, allocations: 6.75 kB / 446.7 MB, free: 54.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2649, allocations: 0 / 446.7 MB, free: 54.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/0.2664, allocations: 0.5561 MB / 447.2 MB, free: 54.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.2668, allocations: 106.5 kB / 447.3 MB, free: 54.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.268, allocations: 1.185 MB / 448.5 MB, free: 53.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004697/0.2685, allocations: 82.73 kB / 448.6 MB, free: 53.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.2686, allocations: 29.19 kB / 448.6 MB, free: 53.5 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: 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.0004391/0.269, allocations: 458.1 kB / 449.1 MB, free: 53.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.2692, allocations: 120.6 kB / 449.2 MB, free: 53.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002776/0.2719, allocations: 1.48 MB / 450.7 MB, free: 52.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.272, allocations: 14.58 kB / 450.7 MB, free: 52.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.272, allocations: 0 / 450.7 MB, free: 52.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.272, allocations: 10.61 kB / 450.7 MB, free: 52.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004251/0.2762, allocations: 3.148 MB / 453.8 MB, free: 51.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.2763, allocations: 0 / 453.8 MB, free: 51.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003254/0.2766, allocations: 111 kB / 453.9 MB, free: 51.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001438/0.278, allocations: 0.5271 MB / 454.5 MB, free: 50.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.565e-05/0.2781, allocations: 21.53 kB / 454.5 MB, free: 50.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.2793, allocations: 1.162 MB / 455.7 MB, free: 50.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2793, allocations: 3.469 kB / 455.7 MB, free: 50.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003203/0.2825, allocations: 1.993 MB / 457.6 MB, free: 49.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/0.2828, allocations: 273.7 kB / 457.9 MB, free: 49.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.2829, allocations: 18.52 kB / 457.9 MB, free: 49.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004761/0.2834, allocations: 51.7 kB / 458 MB, free: 49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.2835, allocations: 75.44 kB / 458.1 MB, free: 48.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.2836, allocations: 33.88 kB / 458.1 MB, free: 48.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001146/0.2847, allocations: 1.283 MB / 459.4 MB, free: 48.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2847, allocations: 4 kB / 459.4 MB, free: 48.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005466/0.2853, allocations: 238.6 kB / 459.6 MB, free: 48.47 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: 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.0005589/0.2859, allocations: 293.5 kB / 459.9 MB, free: 48.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002237/0.2881, allocations: 1.09 MB / 461 MB, free: 48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.2881, allocations: 3.156 kB / 461 MB, free: 48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001543/0.2897, allocations: 0.6699 MB / 461.7 MB, free: 47.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006462/0.2903, allocations: 113.4 kB / 461.8 MB, free: 47.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003363/0.2937, allocations: 2.886 MB / 464.7 MB, free: 46.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.2942, allocations: 1.173 MB / 465.8 MB, free: 45.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003344/0.2945, allocations: 166 kB / 466 MB, free: 45.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.2947, allocations: 79.78 kB / 466.1 MB, free: 45.44 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2947, allocations: 0 / 466.1 MB, free: 45.44 MB / 366.1 MB Notification: Performance of Templates: time 0.02163/0.3163, allocations: 14.25 MB / 480.3 MB, free: 44.47 MB / 366.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)