Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 107.7 kB / 17.07 MB, free: 5.68 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.001263/0.001263, allocations: 194.9 kB / 18.01 MB, free: 5.02 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.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04752/0.04752, allocations: 8.1 MB / 300 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.89 kB / 363.2 MB, free: 7.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2146, allocations: 51.51 MB / 414.7 MB, free: 25.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.00356/0.2182, allocations: 3.135 MB / 417.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.2195, allocations: 1.168 MB / 419 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.2196, allocations: 11.94 kB / 419 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005923/0.2202, allocations: 434.5 kB / 419.4 MB, free: 20.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003237/0.2206, allocations: 274.8 kB / 419.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.2219, allocations: 0.9765 MB / 420.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.2223, allocations: 0.5177 MB / 421.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.2225, allocations: 167.2 kB / 421.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.2226, allocations: 231.3 kB / 421.6 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.2229, allocations: 366.9 kB / 421.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.223, allocations: 52 kB / 422 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003268/0.2233, allocations: 275.8 kB / 422.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.2235, allocations: 343.1 kB / 422.6 MB, free: 17.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.2238, allocations: 457.3 kB / 423 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007836/0.2246, allocations: 1.328 MB / 424.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2246, allocations: 0 / 424.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2246, allocations: 0 / 424.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.2246, allocations: 0 / 424.4 MB, free: 15.71 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002766/0.2274, allocations: 1.548 MB / 425.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.2274, allocations: 11.89 kB / 425.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.2276, allocations: 111.6 kB / 426 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009892/0.2286, allocations: 0.8719 MB / 426.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.66e-05/0.2286, allocations: 76.53 kB / 427 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.215e-05/0.2287, allocations: 36.31 kB / 427 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000617/0.2293, allocations: 453 kB / 427.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.2293, allocations: 0 / 427.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.2294, allocations: 16 kB / 427.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.2294, allocations: 8 kB / 427.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005008/0.2299, allocations: 314.1 kB / 427.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.2323, allocations: 2.127 MB / 429.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000878/0.2332, allocations: 487.6 kB / 430.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.2336, allocations: 210.9 kB / 430.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.2338, allocations: 93.27 kB / 430.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.2338, allocations: 42.73 kB / 430.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.393e-06/0.2338, allocations: 0 / 430.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001964/0.2358, allocations: 0.8214 MB / 431.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.2358, allocations: 239.3 kB / 431.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.2373, allocations: 1.741 MB / 433.5 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.2373, allocations: 29.7 kB / 433.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000266/0.2376, allocations: 440.8 kB / 434 MB, free: 5.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.73e-05/0.2376, allocations: 90.64 kB / 434.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.2377, allocations: 73.59 kB / 434.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.44e-05/0.2378, allocations: 318 kB / 434.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.2381, allocations: 155.9 kB / 434.6 MB, free: 5.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.2384, allocations: 242 kB / 434.8 MB, free: 4.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003095/0.2415, allocations: 0.9423 MB / 435.8 MB, free: 3.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2415, allocations: 0 / 435.8 MB, free: 3.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001127/0.2426, allocations: 0.6061 MB / 436.4 MB, free: 3.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.2427, allocations: 8 kB / 436.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2427, allocations: 0 / 436.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005958/0.2433, allocations: 152.6 kB / 436.6 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.2435, allocations: 71.95 kB / 436.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/0.2455, allocations: 2.035 MB / 438.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003394/0.2458, allocations: 47.66 kB / 438.7 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.2459, allocations: 12 kB / 438.7 MB, free: 0.707 MB / 302.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: 4 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003398/0.2462, allocations: 412.5 kB / 439.1 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.2463, allocations: 94.78 kB / 439.2 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.2476, allocations: 0.5972 MB / 439.8 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2477, allocations: 7.938 kB / 439.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.2477, allocations: 0 / 439.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2477, allocations: 0 / 439.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/0.2501, allocations: 1.478 MB / 441.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2501, allocations: 0 / 441.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.2503, allocations: 59.91 kB / 441.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005972/0.251, allocations: 144.7 kB / 441.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.251, allocations: 8 kB / 441.5 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002181/0.2532, allocations: 2.005 MB / 443.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.2532, allocations: 11.97 kB / 443.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.2548, allocations: 0.8264 MB / 444.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003909/0.2552, allocations: 239.8 kB / 444.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.934e-05/0.2553, allocations: 8 kB / 444.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.2557, allocations: 39.97 kB / 444.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.2558, allocations: 35.95 kB / 444.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.2558, allocations: 4 kB / 444.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.2574, allocations: 1.26 MB / 445.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2574, allocations: 0 / 445.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005476/0.2579, allocations: 151.8 kB / 446.1 MB, free: 9.078 MB / 318.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006573/0.2586, allocations: 279.5 kB / 446.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.2598, allocations: 0.5296 MB / 446.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.2599, allocations: 0 / 446.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006953/0.2606, allocations: 342.6 kB / 447.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005862/0.2612, allocations: 91.09 kB / 447.3 MB, free: 7.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004116/0.2653, allocations: 1.873 MB / 449.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007474/0.2661, allocations: 1.076 MB / 450.3 MB, free: 4.883 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002846/0.2663, allocations: 133.1 kB / 450.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.2665, allocations: 51.44 kB / 450.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of SimCode: time 1.523e-06/0.2665, allocations: 3.938 kB / 450.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of Templates: time 0.02064/0.2872, allocations: 11.08 MB / 461.5 MB, free: 9.648 MB / 334.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)