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.001143/0.001143, allocations: 110.3 kB / 17.08 MB, free: 6.062 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.00101/0.00101, allocations: 194.9 kB / 18.01 MB, free: 5.152 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.336/1.336, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04784/0.04784, allocations: 8.088 MB / 300 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 67.89 kB / 363.2 MB, free: 7.387 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2397, allocations: 51.52 MB / 414.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004743/0.2445, allocations: 4.592 MB / 419.3 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.2471, allocations: 1.756 MB / 421 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.2474, allocations: 8 kB / 421 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008312/0.2483, allocations: 499.9 kB / 421.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006478/0.2489, allocations: 394 kB / 421.9 MB, free: 18.16 MB / 302.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.001582/0.2505, allocations: 1.078 MB / 423 MB, free: 17.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006574/0.2512, allocations: 0.8333 MB / 423.8 MB, free: 16.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003868/0.2516, allocations: 329.5 kB / 424.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.2519, allocations: 382.7 kB / 424.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005104/0.2524, allocations: 0.5724 MB / 425.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.678e-05/0.2525, allocations: 80 kB / 425.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004567/0.253, allocations: 311.8 kB / 425.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.2532, allocations: 430.7 kB / 425.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003512/0.2536, allocations: 0.5943 MB / 426.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.2547, allocations: 1.663 MB / 428.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.2548, allocations: 0 / 428.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2548, allocations: 0 / 428.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.2548, allocations: 0 / 428.2 MB, free: 11.9 MB / 302.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.003828/0.2586, allocations: 1.902 MB / 430.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.2587, allocations: 11.89 kB / 430.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.2589, allocations: 147.2 kB / 430.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.26, allocations: 0.9699 MB / 431.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.2602, allocations: 224.1 kB / 431.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.478e-05/0.2603, allocations: 64.38 kB / 431.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.2615, allocations: 0.8357 MB / 432.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.2615, allocations: 0 / 432.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.2615, allocations: 28 kB / 432.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.2616, allocations: 19.98 kB / 432.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009605/0.2625, allocations: 0.6689 MB / 433 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004263/0.2668, allocations: 3.554 MB / 436.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.2686, allocations: 1.433 MB / 438 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007516/0.2694, allocations: 0.5002 MB / 438.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001669/0.2696, allocations: 102.1 kB / 438.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008824/0.2705, allocations: 0.5437 MB / 439.2 MB, free: 412 kB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.805e-06/0.2705, allocations: 0 / 439.2 MB, free: 412 kB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007924/0.2784, allocations: 2.531 MB / 441.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/0.2786, allocations: 270 kB / 441.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002855/0.2815, allocations: 1.783 MB / 443.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.978e-05/0.2816, allocations: 41.7 kB / 443.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000424/0.282, allocations: 493.5 kB / 444.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.2823, allocations: 299.6 kB / 444.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.2825, allocations: 150.6 kB / 444.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.2827, allocations: 334 kB / 445 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006625/0.2834, allocations: 353.8 kB / 445.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008853/0.2843, allocations: 0.491 MB / 445.9 MB, free: 9.527 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006223/0.2905, allocations: 1.96 MB / 447.8 MB, free: 7.543 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2906, allocations: 0 / 447.8 MB, free: 7.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003508/0.2941, allocations: 1.415 MB / 449.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.2941, allocations: 10.5 kB / 449.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2941, allocations: 0 / 449.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.296, allocations: 0.5449 MB / 449.8 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000482/0.2965, allocations: 115.8 kB / 449.9 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.2984, allocations: 1.181 MB / 451.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007062/0.2991, allocations: 91.19 kB / 451.2 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/0.2992, allocations: 24 kB / 451.2 MB, free: 4.125 MB / 318.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.0007589/0.3, allocations: 461.5 kB / 451.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.3002, allocations: 122.5 kB / 451.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.3035, allocations: 1.483 MB / 453.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.3035, allocations: 8 kB / 453.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.3035, allocations: 0 / 453.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.3035, allocations: 11.97 kB / 453.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005587/0.3091, allocations: 3.13 MB / 456.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.3092, allocations: 8.031 kB / 456.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.3096, allocations: 103.8 kB / 456.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.3113, allocations: 0.5277 MB / 457 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.293e-05/0.3113, allocations: 20 kB / 457 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.3129, allocations: 1.162 MB / 458.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3129, allocations: 0 / 458.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004173/0.3171, allocations: 2.001 MB / 460.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005584/0.3177, allocations: 271.4 kB / 460.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.3178, allocations: 23.94 kB / 460.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005236/0.3183, allocations: 55.02 kB / 460.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.3185, allocations: 72.89 kB / 460.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-05/0.3186, allocations: 28.17 kB / 460.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001604/0.3202, allocations: 1.289 MB / 461.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3202, allocations: 0 / 461.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006653/0.3209, allocations: 239.7 kB / 462.2 MB, free: 8.969 MB / 334.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.0007063/0.3216, allocations: 291.4 kB / 462.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.3242, allocations: 1.097 MB / 463.6 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.3242, allocations: 0 / 463.6 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/0.3261, allocations: 0.6882 MB / 464.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007078/0.3268, allocations: 110.8 kB / 464.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004471/0.3313, allocations: 2.485 MB / 466.8 MB, free: 4.352 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007104/0.332, allocations: 1.177 MB / 468 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003795/0.3324, allocations: 163.2 kB / 468.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.3326, allocations: 75.42 kB / 468.2 MB, free: 2.914 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3326, allocations: 0 / 468.2 MB, free: 2.914 MB / 334.1 MB Notification: Performance of Templates: time 0.02485/0.3575, allocations: 15.26 MB / 483.5 MB, free: 3.688 MB / 350.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 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)