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.001246/0.001246, allocations: 102.3 kB / 16.31 MB, free: 6.441 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.001124/0.001124, allocations: 188 kB / 17.24 MB, free: 5.938 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.322/1.322, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04639/0.04639, allocations: 8.095 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.91 kB / 361.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.21, allocations: 51.51 MB / 413.2 MB, free: 25.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005207/0.2153, allocations: 4.597 MB / 417.8 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002622/0.218, allocations: 1.752 MB / 419.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002906/0.2183, allocations: 16 kB / 419.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008138/0.2191, allocations: 500 kB / 420.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006418/0.2198, allocations: 393.9 kB / 420.5 MB, free: 18.31 MB / 302.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.001626/0.2214, allocations: 1.074 MB / 421.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006414/0.2221, allocations: 0.8178 MB / 422.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003637/0.2224, allocations: 329.5 kB / 422.7 MB, free: 16.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.2227, allocations: 382.7 kB / 423.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004936/0.2232, allocations: 0.5723 MB / 423.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.646e-05/0.2233, allocations: 80 kB / 423.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.2238, allocations: 315.7 kB / 424 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.224, allocations: 426.8 kB / 424.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003432/0.2244, allocations: 0.606 MB / 425.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.2255, allocations: 1.636 MB / 426.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2255, allocations: 0 / 426.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2255, allocations: 0 / 426.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.2256, allocations: 0 / 426.7 MB, free: 12.08 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.003705/0.2293, allocations: 1.906 MB / 428.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.2293, allocations: 8.031 kB / 428.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.2295, allocations: 143.2 kB / 428.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.2306, allocations: 0.9699 MB / 429.7 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.2308, allocations: 220.1 kB / 429.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.509e-05/0.2309, allocations: 64.38 kB / 430 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.232, allocations: 0.8357 MB / 430.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.232, allocations: 3.938 kB / 430.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.065e-05/0.2321, allocations: 28 kB / 430.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2321, allocations: 12 kB / 430.9 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009297/0.2331, allocations: 0.6844 MB / 431.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004104/0.2372, allocations: 3.561 MB / 435.1 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.239, allocations: 1.436 MB / 436.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007052/0.2397, allocations: 0.505 MB / 437.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001349/0.2399, allocations: 98.08 kB / 437.2 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008228/0.2407, allocations: 0.5437 MB / 437.7 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.605e-06/0.2407, allocations: 4 kB / 437.7 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007556/0.2483, allocations: 2.527 MB / 440.2 MB, free: 14.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.2484, allocations: 270 kB / 440.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/0.2506, allocations: 1.779 MB / 442.3 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.84e-05/0.2507, allocations: 49.69 kB / 442.3 MB, free: 11.83 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004038/0.2511, allocations: 493.5 kB / 442.8 MB, free: 11.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.2514, allocations: 295.7 kB / 443.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.2516, allocations: 142.7 kB / 443.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2517, allocations: 337.9 kB / 443.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006195/0.2524, allocations: 353.8 kB / 443.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007479/0.2531, allocations: 0.491 MB / 444.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005869/0.259, allocations: 1.963 MB / 446.4 MB, free: 7.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.259, allocations: 0 / 446.4 MB, free: 7.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003228/0.2623, allocations: 1.415 MB / 447.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.2623, allocations: 8 kB / 447.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.2623, allocations: 0 / 447.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001771/0.2641, allocations: 0.5604 MB / 448.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.2645, allocations: 115.8 kB / 448.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.2661, allocations: 1.166 MB / 449.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006306/0.2667, allocations: 91.19 kB / 449.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.302e-05/0.2668, allocations: 27.98 kB / 449.7 MB, free: 4.293 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.0008188/0.2676, allocations: 459.8 kB / 450.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.2678, allocations: 122.5 kB / 450.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003281/0.2711, allocations: 1.483 MB / 451.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.2711, allocations: 8 kB / 451.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2711, allocations: 0 / 451.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.2712, allocations: 3.984 kB / 451.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005312/0.2765, allocations: 3.157 MB / 455 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.2765, allocations: 0 / 455 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003857/0.2769, allocations: 95.89 kB / 455.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.2786, allocations: 0.5435 MB / 455.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-05/0.2787, allocations: 19.98 kB / 455.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.2802, allocations: 1.158 MB / 456.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2802, allocations: 0 / 456.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003884/0.2841, allocations: 1.999 MB / 458.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003932/0.2845, allocations: 271.4 kB / 459 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.2846, allocations: 19.94 kB / 459.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/0.2852, allocations: 56.02 kB / 459.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.2853, allocations: 72.84 kB / 459.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.497e-05/0.2854, allocations: 27.98 kB / 459.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00157/0.287, allocations: 1.289 MB / 460.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.287, allocations: 0 / 460.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006621/0.2877, allocations: 239.7 kB / 460.7 MB, free: 9.125 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.0006759/0.2883, allocations: 297.8 kB / 461 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003001/0.2914, allocations: 1.124 MB / 462.1 MB, free: 7.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.2914, allocations: 4.125 kB / 462.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.2932, allocations: 0.6801 MB / 462.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007039/0.2939, allocations: 108.4 kB / 462.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004378/0.2983, allocations: 2.507 MB / 465.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008083/0.2991, allocations: 1.185 MB / 466.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000395/0.2995, allocations: 163.2 kB / 466.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.2997, allocations: 79.42 kB / 466.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2997, allocations: 0 / 466.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of Templates: time 0.02343/0.3232, allocations: 15.27 MB / 482.1 MB, free: 3.781 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)