Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 91.88 kB / 16.71 MB, free: 6.145 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.0009522/0.0009522, allocations: 177.9 kB / 17.62 MB, free: 5.855 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.326/1.326, allocations: 223.3 MB / 241.7 MB, free: 14.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04096/0.04096, allocations: 8.094 MB / 300.9 MB, free: 6.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003177, allocations: 8 kB / 364.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2117, allocations: 52.51 MB / 416.7 MB, free: 24.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003071/0.2148, allocations: 3.007 MB / 419.7 MB, free: 21.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.2167, allocations: 1.286 MB / 421 MB, free: 20.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003215/0.2171, allocations: 4 kB / 421 MB, free: 20.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005565/0.2177, allocations: 171.1 kB / 421.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00055/0.2182, allocations: 147.1 kB / 421.3 MB, free: 20.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005839/0.2188, allocations: 219.7 kB / 421.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005657/0.2194, allocations: 0.5258 MB / 422 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.2197, allocations: 144.7 kB / 422.2 MB, free: 19.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002894/0.22, allocations: 175.1 kB / 422.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.2203, allocations: 199.1 kB / 422.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.607e-05/0.2204, allocations: 24 kB / 422.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.2206, allocations: 63.92 kB / 422.6 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.2207, allocations: 139.5 kB / 422.7 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.221, allocations: 252.4 kB / 423 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.2214, allocations: 498.7 kB / 423.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2214, allocations: 4 kB / 423.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2214, allocations: 0 / 423.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.2214, allocations: 0 / 423.5 MB, free: 17.95 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002101/0.2235, allocations: 0.9855 MB / 424.5 MB, free: 16.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.2236, allocations: 8.031 kB / 424.5 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.2238, allocations: 56.28 kB / 424.5 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006798/0.2245, allocations: 494.4 kB / 425 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.2247, allocations: 65.08 kB / 425.1 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.72e-05/0.2248, allocations: 27.94 kB / 425.1 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006793/0.2255, allocations: 409.5 kB / 425.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2255, allocations: 0 / 425.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.2255, allocations: 16 kB / 425.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.2256, allocations: 8 kB / 425.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005179/0.2261, allocations: 270 kB / 425.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.2283, allocations: 1.551 MB / 427.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/0.2289, allocations: 323.5 kB / 427.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.2292, allocations: 124.5 kB / 427.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.2293, allocations: 15.97 kB / 427.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.2293, allocations: 42.5 kB / 427.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.073e-06/0.2293, allocations: 0 / 427.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008807/0.2302, allocations: 349.1 kB / 428.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.2303, allocations: 213.7 kB / 428.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006172/0.2309, allocations: 0.572 MB / 429 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.2309, allocations: 33.7 kB / 429 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.2311, allocations: 267.7 kB / 429.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.2311, allocations: 43.36 kB / 429.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.805e-05/0.2312, allocations: 21.72 kB / 429.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.785e-05/0.2312, allocations: 358.8 kB / 429.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.2315, allocations: 103.9 kB / 429.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.2318, allocations: 239.5 kB / 430 MB, free: 11.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004366/0.2323, allocations: 221.2 kB / 430.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2323, allocations: 0 / 430.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006543/0.2329, allocations: 328.8 kB / 430.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.233, allocations: 8.781 kB / 430.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.233, allocations: 7.922 kB / 430.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.233, allocations: 8.312 kB / 430.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.2332, allocations: 51.91 kB / 430.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.2333, allocations: 4 kB / 430.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006643/0.2339, allocations: 151.5 kB / 430.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.234, allocations: 12 kB / 430.8 MB, free: 10.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001878/0.2342, allocations: 177.8 kB / 430.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.237e-05/0.2343, allocations: 43.52 kB / 431 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006883/0.2349, allocations: 303.4 kB / 431.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.235, allocations: 0 / 431.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.235, allocations: 0 / 431.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.235, allocations: 0 / 431.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.2361, allocations: 0.7915 MB / 432.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2361, allocations: 4.031 kB / 432.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.2363, allocations: 31.97 kB / 432.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.2363, allocations: 4 kB / 432.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.2363, allocations: 7.984 kB / 432.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2363, allocations: 0 / 432.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2363, allocations: 4 kB / 432.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008479/0.2372, allocations: 0.4957 MB / 432.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.2374, allocations: 160.5 kB / 432.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.206e-05/0.2374, allocations: 4 kB / 432.8 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007045/0.2382, allocations: 140 kB / 432.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/0.2384, allocations: 131.8 kB / 433 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.2385, allocations: 11.94 kB / 433.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004261/0.2389, allocations: 423.1 kB / 433.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2389, allocations: 7.938 kB / 433.5 MB, free: 7.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004277/0.2393, allocations: 99.78 kB / 433.6 MB, free: 7.289 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008271/0.2402, allocations: 360.2 kB / 433.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006513/0.2408, allocations: 255.7 kB / 434.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2409, allocations: 0.625 kB / 434.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.2412, allocations: 167.8 kB / 434.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007298/0.2419, allocations: 108.3 kB / 434.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.2437, allocations: 1.067 MB / 435.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.2439, allocations: 0.8233 MB / 436.3 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.2441, allocations: 39.42 kB / 436.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2441, allocations: 0 / 436.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of Templates: time 0.01046/0.2546, allocations: 6.788 MB / 443.2 MB, free: 13.8 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)