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.001213/0.001213, allocations: 105.7 kB / 16.69 MB, free: 6.363 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.001145/0.001145, allocations: 182 kB / 17.61 MB, free: 5.746 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.3 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0469/0.0469, allocations: 8.094 MB / 299.5 MB, free: 6.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 59.91 kB / 361.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1956, allocations: 51.52 MB / 413.4 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004429/0.2001, allocations: 4.606 MB / 418 MB, free: 21.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.2023, allocations: 1.725 MB / 419.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003438/0.2027, allocations: 8 kB / 419.7 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007938/0.2035, allocations: 472.5 kB / 420.2 MB, free: 18.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006443/0.2042, allocations: 354.5 kB / 420.5 MB, free: 18.61 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.001476/0.2057, allocations: 1.001 MB / 421.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006777/0.2064, allocations: 0.8217 MB / 422.4 MB, free: 16.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003481/0.2067, allocations: 329.5 kB / 422.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.207, allocations: 382.7 kB / 423.1 MB, free: 16.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004825/0.2075, allocations: 0.588 MB / 423.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.446e-05/0.2076, allocations: 84 kB / 423.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004361/0.208, allocations: 311.8 kB / 424 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.2083, allocations: 426.8 kB / 424.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003208/0.2086, allocations: 0.6059 MB / 425.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008638/0.2095, allocations: 1.326 MB / 426.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2095, allocations: 0 / 426.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2095, allocations: 4 kB / 426.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.13e-05/0.2095, allocations: 0 / 426.4 MB, free: 12.74 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.003551/0.2131, allocations: 1.898 MB / 428.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2131, allocations: 15.89 kB / 428.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.2133, allocations: 147.2 kB / 428.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009673/0.2143, allocations: 0.9621 MB / 429.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.2144, allocations: 228.1 kB / 429.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.89e-05/0.2145, allocations: 60.38 kB / 429.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.2157, allocations: 0.8358 MB / 430.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.2157, allocations: 0 / 430.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.285e-05/0.2158, allocations: 28 kB / 430.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.2158, allocations: 12 kB / 430.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009215/0.2167, allocations: 0.6767 MB / 431.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003845/0.2206, allocations: 3.573 MB / 434.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/0.2223, allocations: 1.429 MB / 436.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.223, allocations: 0.5002 MB / 436.7 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001392/0.2232, allocations: 102.1 kB / 436.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000826/0.224, allocations: 0.5515 MB / 437.4 MB, free: 1.227 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.324e-06/0.224, allocations: 0 / 437.4 MB, free: 1.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007498/0.2315, allocations: 2.531 MB / 439.9 MB, free: 14.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.2317, allocations: 277.9 kB / 440.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002192/0.2339, allocations: 1.779 MB / 442 MB, free: 12.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.681e-05/0.234, allocations: 45.7 kB / 442 MB, free: 12.49 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004074/0.2344, allocations: 493.6 kB / 442.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/0.2347, allocations: 291.6 kB / 442.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002404/0.2349, allocations: 146.6 kB / 442.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2351, allocations: 338 kB / 443.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006439/0.2357, allocations: 357.8 kB / 443.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007568/0.2365, allocations: 0.4988 MB / 444.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006021/0.2425, allocations: 1.955 MB / 446.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.2425, allocations: 0 / 446.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003403/0.246, allocations: 1.411 MB / 447.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.246, allocations: 8 kB / 447.5 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.246, allocations: 7.984 kB / 447.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001825/0.2478, allocations: 0.5449 MB / 448 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.2483, allocations: 119.8 kB / 448.2 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.25, allocations: 1.174 MB / 449.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006923/0.2507, allocations: 87.19 kB / 449.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.358e-05/0.2508, allocations: 31.98 kB / 449.4 MB, free: 4.941 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.0007135/0.2515, allocations: 453.6 kB / 449.9 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.2517, allocations: 122.5 kB / 450 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003388/0.2551, allocations: 1.479 MB / 451.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.2551, allocations: 12 kB / 451.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.2551, allocations: 0 / 451.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.2552, allocations: 11.97 kB / 451.5 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005559/0.2607, allocations: 3.142 MB / 454.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.2608, allocations: 4 kB / 454.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003967/0.2612, allocations: 107.8 kB / 454.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.2629, allocations: 0.5277 MB / 455.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.815e-05/0.263, allocations: 23.98 kB / 455.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/0.2646, allocations: 1.158 MB / 456.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2646, allocations: 4 kB / 456.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004149/0.2688, allocations: 1.991 MB / 458.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004642/0.2693, allocations: 267.4 kB / 458.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.2694, allocations: 23.94 kB / 458.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005479/0.27, allocations: 58.64 kB / 458.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.2702, allocations: 72.89 kB / 458.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.278e-05/0.2703, allocations: 24.11 kB / 458.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001636/0.2719, allocations: 1.289 MB / 460.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2719, allocations: 0 / 460.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007395/0.2727, allocations: 243.6 kB / 460.4 MB, free: 9.789 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.0007461/0.2734, allocations: 300.8 kB / 460.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003205/0.2766, allocations: 1.128 MB / 461.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.2767, allocations: 0 / 461.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.2786, allocations: 0.6765 MB / 462.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009351/0.2795, allocations: 115.7 kB / 462.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004923/0.2845, allocations: 2.961 MB / 465.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007959/0.2853, allocations: 1.177 MB / 466.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/0.2856, allocations: 83.41 kB / 466.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2856, allocations: 0 / 466.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of Templates: time 0.02622/0.3119, allocations: 19.26 MB / 486.1 MB, free: 112 kB / 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)