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.001258/0.001258, allocations: 103 kB / 16.98 MB, free: 6.18 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.001181/0.001182, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.392/1.392, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04861/0.04861, allocations: 8.098 MB / 299.9 MB, free: 6.73 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 59.91 kB / 362.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2162, allocations: 51.51 MB / 413.9 MB, free: 25.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004652/0.2209, allocations: 4.601 MB / 418.5 MB, free: 21.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.2233, allocations: 1.748 MB / 420.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000329/0.2237, allocations: 12 kB / 420.3 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007978/0.2245, allocations: 0.4961 MB / 420.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006209/0.2251, allocations: 390 kB / 421.2 MB, free: 18.48 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.001583/0.2267, allocations: 1.078 MB / 422.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006869/0.2274, allocations: 0.8178 MB / 423.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000362/0.2278, allocations: 329.5 kB / 423.4 MB, free: 16.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.2281, allocations: 382.7 kB / 423.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004854/0.2286, allocations: 0.5724 MB / 424.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.872e-05/0.2287, allocations: 80 kB / 424.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004616/0.2291, allocations: 307.8 kB / 424.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.2294, allocations: 426.8 kB / 425.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003479/0.2297, allocations: 0.6059 MB / 425.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.2308, allocations: 1.636 MB / 427.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2308, allocations: 0 / 427.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2308, allocations: 0 / 427.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.2309, allocations: 0 / 427.4 MB, free: 12.25 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.003661/0.2345, allocations: 1.906 MB / 429.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2346, allocations: 15.83 kB / 429.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.2348, allocations: 143.2 kB / 429.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009876/0.2358, allocations: 0.966 MB / 430.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.2359, allocations: 220.1 kB / 430.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.127e-05/0.236, allocations: 60.38 kB / 430.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.2371, allocations: 0.8357 MB / 431.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.2371, allocations: 4 kB / 431.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.2372, allocations: 31.94 kB / 431.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2372, allocations: 12 kB / 431.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009389/0.2381, allocations: 0.6806 MB / 432.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.2422, allocations: 3.573 MB / 435.8 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.244, allocations: 1.425 MB / 437.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007155/0.2447, allocations: 0.5119 MB / 437.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.2449, allocations: 102.1 kB / 437.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008442/0.2458, allocations: 0.5359 MB / 438.4 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.435e-06/0.2458, allocations: 3.938 kB / 438.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007844/0.2536, allocations: 2.531 MB / 440.9 MB, free: 14.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.2538, allocations: 270 kB / 441.2 MB, free: 13.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002259/0.2561, allocations: 1.783 MB / 442.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.107e-05/0.2562, allocations: 41.7 kB / 443 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/0.2566, allocations: 493.6 kB / 443.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002408/0.2568, allocations: 295.7 kB / 443.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.2571, allocations: 146.6 kB / 443.9 MB, free: 11.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.2572, allocations: 337.9 kB / 444.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/0.2579, allocations: 357.8 kB / 444.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000774/0.2586, allocations: 0.4946 MB / 445.1 MB, free: 9.855 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006089/0.2647, allocations: 1.959 MB / 447 MB, free: 7.875 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.2648, allocations: 3.938 kB / 447 MB, free: 7.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003396/0.2682, allocations: 1.411 MB / 448.4 MB, free: 6.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/0.2682, allocations: 10.34 kB / 448.5 MB, free: 6.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.2683, allocations: 0 / 448.5 MB, free: 6.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/0.2701, allocations: 0.5488 MB / 449 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.2706, allocations: 115.8 kB / 449.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.2723, allocations: 1.178 MB / 450.3 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007348/0.273, allocations: 87.19 kB / 450.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.318e-05/0.2731, allocations: 32.06 kB / 450.4 MB, free: 4.453 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.0007691/0.2739, allocations: 457.6 kB / 450.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.2741, allocations: 122.5 kB / 451 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003407/0.2775, allocations: 1.494 MB / 452.5 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.2776, allocations: 8 kB / 452.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.2776, allocations: 0 / 452.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.2776, allocations: 3.984 kB / 452.5 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00553/0.2831, allocations: 3.146 MB / 455.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.2832, allocations: 0 / 455.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003982/0.2836, allocations: 103.8 kB / 455.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001727/0.2853, allocations: 0.5316 MB / 456.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/0.2854, allocations: 20 kB / 456.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.287, allocations: 1.162 MB / 457.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.287, allocations: 0 / 457.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004114/0.2911, allocations: 2.007 MB / 459.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004986/0.2916, allocations: 267.4 kB / 459.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.2918, allocations: 19.94 kB / 459.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005559/0.2924, allocations: 60.02 kB / 459.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.2925, allocations: 68.91 kB / 459.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.693e-05/0.2926, allocations: 23.98 kB / 459.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001663/0.2943, allocations: 1.289 MB / 461.2 MB, free: 9.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2943, allocations: 0 / 461.2 MB, free: 9.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007537/0.295, allocations: 235.7 kB / 461.4 MB, free: 9.289 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.0007174/0.2958, allocations: 287.8 kB / 461.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003216/0.299, allocations: 1.132 MB / 462.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.299, allocations: 384 / 462.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.3009, allocations: 0.6878 MB / 463.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/0.3018, allocations: 114.5 kB / 463.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.3066, allocations: 2.593 MB / 466.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007318/0.3073, allocations: 1.181 MB / 467.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002877/0.3076, allocations: 79.42 kB / 467.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3076, allocations: 4 kB / 467.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of Templates: time 0.02882/0.3365, allocations: 19.27 MB / 486.7 MB, free: 15.97 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)