Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Components.myBattery.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.Components.myBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Components.myBattery") translateModel(PowerSysPro.Components.myBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Components.myBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 106.7 kB / 16.57 MB, free: 6.262 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.001189/0.001189, allocations: 194.7 kB / 17.49 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.322/1.322, allocations: 222.9 MB / 241.2 MB, free: 15.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04513/0.04513, allocations: 8.09 MB / 299.4 MB, free: 6.91 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001218, allocations: 59.91 kB / 361.7 MB, free: 8.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2246, allocations: 51.52 MB / 413.2 MB, free: 25.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003208/0.2278, allocations: 2.51 MB / 415.7 MB, free: 23.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.229, allocations: 0.903 MB / 416.6 MB, free: 22.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2291, allocations: 7.938 kB / 416.6 MB, free: 22.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005695/0.2297, allocations: 371 kB / 417 MB, free: 22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/0.2299, allocations: 187.4 kB / 417.2 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.2306, allocations: 402.8 kB / 417.6 MB, free: 21.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.2309, allocations: 338.9 kB / 417.9 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.2311, allocations: 101.6 kB / 418 MB, free: 20.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.2312, allocations: 159.5 kB / 418.2 MB, free: 20.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.2315, allocations: 279.2 kB / 418.4 MB, free: 20.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.2315, allocations: 20 kB / 418.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002802/0.2318, allocations: 151.9 kB / 418.6 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.232, allocations: 303.2 kB / 418.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.2322, allocations: 337.6 kB / 419.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004588/0.2327, allocations: 0.733 MB / 419.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2327, allocations: 0 / 419.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2327, allocations: 0 / 419.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.2327, allocations: 0 / 419.9 MB, free: 19.03 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001758/0.2345, allocations: 1.246 MB / 421.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.2345, allocations: 11.97 kB / 421.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.2346, allocations: 95.81 kB / 421.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006823/0.2353, allocations: 0.7384 MB / 422 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-05/0.2354, allocations: 72.34 kB / 422.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.766e-05/0.2355, allocations: 16.38 kB / 422.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.236, allocations: 304 kB / 422.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.236, allocations: 3.938 kB / 422.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.2361, allocations: 15.88 kB / 422.4 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.2361, allocations: 8 kB / 422.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.2365, allocations: 171.6 kB / 422.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.2382, allocations: 1.282 MB / 423.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005843/0.2388, allocations: 319.7 kB / 424.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/0.2391, allocations: 132.8 kB / 424.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000791/0.2399, allocations: 0.6573 MB / 425 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.2399, allocations: 42.55 kB / 425 MB, free: 13.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.874e-06/0.2399, allocations: 0 / 425 MB, free: 13.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007187/0.2406, allocations: 304.5 kB / 425.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.2407, allocations: 235.3 kB / 425.6 MB, free: 13.04 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:54:7-55:59:writable] Warning: Parameter SOC_start has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:53:7-53:73:writable] Warning: Parameter Np has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:52:7-52:71:writable] Warning: Parameter Ns has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:425:9-425:73:writable] Warning: Parameter UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.2422, allocations: 1.569 MB / 427.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.2422, allocations: 33.7 kB / 427.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.2425, allocations: 419 kB / 427.6 MB, free: 11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.2425, allocations: 35.41 kB / 427.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.63e-05/0.2426, allocations: 45.69 kB / 427.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.763e-05/0.2426, allocations: 318 kB / 428 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.2428, allocations: 55.95 kB / 428 MB, free: 10.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.2431, allocations: 167.8 kB / 428.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009556/0.244, allocations: 313.7 kB / 428.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.244, allocations: 0 / 428.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005303/0.2446, allocations: 291.4 kB / 428.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2446, allocations: 4 kB / 428.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.2446, allocations: 4 kB / 428.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.2446, allocations: 0 / 428.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006668/0.2453, allocations: 104 kB / 428.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2453, allocations: 4 kB / 428.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.2456, allocations: 35.81 kB / 428.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.2456, allocations: 8 kB / 428.9 MB, free: 9.562 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0003602/0.246, allocations: 349.6 kB / 429.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.825e-05/0.2461, allocations: 90.81 kB / 429.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005069/0.2466, allocations: 273.5 kB / 429.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2466, allocations: 4 kB / 429.6 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2466, allocations: 0 / 429.6 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2466, allocations: 3.984 kB / 429.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.2471, allocations: 0.5761 MB / 430.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2471, allocations: 3.938 kB / 430.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006611/0.2478, allocations: 87.91 kB / 430.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2478, allocations: 4 kB / 430.3 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.2478, allocations: 0 / 430.3 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.2478, allocations: 4 kB / 430.3 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2478, allocations: 7.984 kB / 430.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006535/0.2485, allocations: 414.7 kB / 430.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.2487, allocations: 219.9 kB / 430.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.686e-05/0.2488, allocations: 0 / 430.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.249, allocations: 27.97 kB / 431 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.2491, allocations: 19.97 kB / 431 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.2491, allocations: 8.062 kB / 431 MB, free: 7.395 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001/0.2501, allocations: 1.134 MB / 432.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2501, allocations: 3.938 kB / 432.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004069/0.2505, allocations: 103.8 kB / 432.2 MB, free: 6.145 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (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.0005908/0.2511, allocations: 257 kB / 432.5 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004529/0.2516, allocations: 171.3 kB / 432.7 MB, free: 5.797 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2516, allocations: 0 / 432.7 MB, free: 5.797 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.2518, allocations: 75.95 kB / 432.7 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.2523, allocations: 78.03 kB / 432.8 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.2549, allocations: 1.882 MB / 434.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.2553, allocations: 1.005 MB / 435.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.2554, allocations: 55.36 kB / 435.7 MB, free: 2.645 MB / 302.1 MB Notification: Performance of SimCode: time 5.92e-07/0.2554, allocations: 0 / 435.7 MB, free: 2.645 MB / 302.1 MB Notification: Performance of Templates: time 0.0142/0.2696, allocations: 9.153 MB / 444.9 MB, free: 9.488 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Components.myBattery.makefile (rm -f PowerSysPro_PowerSysPro.Components.myBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Components.myBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Components.myBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Components.myBattery.sim & ./PowerSysPro_PowerSysPro.Components.myBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Components.myBattery.pipe 2>&1)