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.000966/0.0009661, allocations: 86.62 kB / 16.71 MB, free: 6.211 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.001091/0.001091, allocations: 181 kB / 17.62 MB, free: 5.875 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.271/1.271, allocations: 223.3 MB / 241.7 MB, free: 14.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.039/0.039, allocations: 8.094 MB / 300.9 MB, free: 6.449 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002896/0.0002896, allocations: 12 kB / 364.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1968, allocations: 52.5 MB / 416.7 MB, free: 24.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.003282/0.2001, allocations: 4.198 MB / 420.9 MB, free: 20.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.202, allocations: 1.686 MB / 422.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.2022, allocations: 12 kB / 422.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006201/0.2028, allocations: 476.5 kB / 423 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005185/0.2034, allocations: 350.5 kB / 423.4 MB, free: 18.09 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.001362/0.2047, allocations: 1.014 MB / 424.4 MB, free: 17.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005729/0.2053, allocations: 0.7905 MB / 425.2 MB, free: 16.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003077/0.2056, allocations: 277.2 kB / 425.4 MB, free: 16.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.2059, allocations: 322.7 kB / 425.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.2063, allocations: 0.5295 MB / 426.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.328e-05/0.2064, allocations: 36 kB / 426.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003666/0.2068, allocations: 259.8 kB / 426.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.207, allocations: 378.8 kB / 426.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002822/0.2073, allocations: 0.5607 MB / 427.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007144/0.208, allocations: 1.27 MB / 428.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.208, allocations: 4 kB / 428.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.208, allocations: 0 / 428.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.208, allocations: 0 / 428.8 MB, free: 12.66 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.003244/0.2113, allocations: 1.684 MB / 430.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.2113, allocations: 11.97 kB / 430.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.2115, allocations: 147.2 kB / 430.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009299/0.2124, allocations: 0.966 MB / 431.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.2125, allocations: 224.1 kB / 431.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.028e-05/0.2126, allocations: 60.38 kB / 431.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.2138, allocations: 0.8406 MB / 432.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.2138, allocations: 0 / 432.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.102e-05/0.2138, allocations: 24 kB / 432.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.2139, allocations: 20 kB / 432.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009644/0.2148, allocations: 0.6884 MB / 433.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003893/0.2187, allocations: 3.608 MB / 437 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.2205, allocations: 1.433 MB / 438.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007245/0.2213, allocations: 0.5158 MB / 439 MB, free: 1.977 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.2214, allocations: 102.1 kB / 439.1 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000796/0.2222, allocations: 0.5554 MB / 439.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.354e-06/0.2222, allocations: 0 / 439.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.008009/0.2303, allocations: 2.659 MB / 442.3 MB, free: 14.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.2304, allocations: 270 kB / 442.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002177/0.2326, allocations: 1.783 MB / 444.4 MB, free: 12.47 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.895e-05/0.2327, allocations: 41.7 kB / 444.4 MB, free: 12.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/0.2331, allocations: 489.6 kB / 444.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.2334, allocations: 291.7 kB / 445.2 MB, free: 11.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2335, allocations: 77.67 kB / 445.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.2336, allocations: 337.9 kB / 445.6 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006742/0.2343, allocations: 369.8 kB / 445.9 MB, free: 10.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007849/0.2351, allocations: 0.5066 MB / 446.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006312/0.2414, allocations: 1.994 MB / 448.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.2414, allocations: 7.938 kB / 448.4 MB, free: 8.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003357/0.2448, allocations: 1.446 MB / 449.9 MB, free: 6.844 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.2448, allocations: 8 kB / 449.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.2448, allocations: 0 / 449.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001811/0.2467, allocations: 0.5605 MB / 450.4 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.2471, allocations: 115.9 kB / 450.6 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.2487, allocations: 1.193 MB / 451.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/0.2494, allocations: 95.19 kB / 451.8 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.713e-05/0.2495, allocations: 31.98 kB / 451.9 MB, free: 4.812 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.000662/0.2501, allocations: 455.9 kB / 452.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.2503, allocations: 122.5 kB / 452.4 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/0.2538, allocations: 1.522 MB / 454 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.2538, allocations: 8 kB / 454 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2538, allocations: 0 / 454 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.2538, allocations: 7.984 kB / 454 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005394/0.2592, allocations: 3.192 MB / 457.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.2592, allocations: 0 / 457.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.2596, allocations: 107.9 kB / 457.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001762/0.2614, allocations: 0.5355 MB / 457.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.605e-05/0.2615, allocations: 19.98 kB / 457.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.2631, allocations: 1.174 MB / 459 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2631, allocations: 4 kB / 459 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/0.2672, allocations: 2.034 MB / 461 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.2675, allocations: 271.4 kB / 461.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.2677, allocations: 23.94 kB / 461.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005484/0.2682, allocations: 70.64 kB / 461.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.2684, allocations: 68.89 kB / 461.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.746e-05/0.2684, allocations: 31.98 kB / 461.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001517/0.27, allocations: 1.281 MB / 462.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.27, allocations: 0 / 462.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006511/0.2706, allocations: 235.7 kB / 463 MB, free: 9.512 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.000677/0.2713, allocations: 312.9 kB / 463.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002727/0.2741, allocations: 1.128 MB / 464.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.2741, allocations: 0 / 464.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.276, allocations: 0.6922 MB / 465.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007498/0.2767, allocations: 111.2 kB / 465.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004637/0.2814, allocations: 3.001 MB / 468.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007522/0.2822, allocations: 1.173 MB / 469.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002666/0.2824, allocations: 79.42 kB / 469.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2824, allocations: 4 kB / 469.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of Templates: time 0.02389/0.3063, allocations: 19.14 MB / 488.6 MB, free: 15.89 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)