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/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: "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007151/0.0007152, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007758/0.0007759, allocations: 176.1 kB / 16.63 MB, free: 6.887 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.249/1.249, allocations: 223.2 MB / 240.6 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1513/0.1513, allocations: 8.084 MB / 299.8 MB, free: 2.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003317, allocations: 12 kB / 363 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.08894, allocations: 52.51 MB / 415.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003159/0.09214, allocations: 2.878 MB / 418.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.09375, allocations: 1.232 MB / 419.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.0939, allocations: 11.94 kB / 419.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003858/0.09429, allocations: 147.3 kB / 419.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002761/0.09458, allocations: 151.1 kB / 419.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00043/0.09502, allocations: 191.4 kB / 420.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004502/0.09548, allocations: 490.6 kB / 420.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.0957, allocations: 135.1 kB / 420.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.09588, allocations: 167.3 kB / 420.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.09612, allocations: 203.1 kB / 421 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.09617, allocations: 20 kB / 421.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.09631, allocations: 51.98 kB / 421.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001682/0.09648, allocations: 135.5 kB / 421.2 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.438e-05/0.09657, allocations: 109.5 kB / 421.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.097, allocations: 0.4909 MB / 421.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.09701, allocations: 0 / 421.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.09702, allocations: 8 kB / 421.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.09703, allocations: 0 / 421.9 MB, free: 2.219 MB / 350.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.00174/0.09878, allocations: 0.9893 MB / 422.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.09882, allocations: 8.031 kB / 422.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.144e-05/0.09889, allocations: 70.53 kB / 422.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.317e-05/0.09898, allocations: 55.34 kB / 423 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/0.09957, allocations: 469.5 kB / 423.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.0998, allocations: 72.45 kB / 423.5 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.09985, allocations: 24 kB / 423.5 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006518/0.1005, allocations: 409.5 kB / 423.9 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1005, allocations: 0 / 423.9 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.157/0.2575, allocations: 16.19 kB / 423.9 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.663e-05/0.2576, allocations: 6.062 kB / 423.9 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006712/0.2582, allocations: 267.5 kB / 424.2 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.2603, allocations: 1.551 MB / 425.8 MB, free: 40.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00057/0.2608, allocations: 326.2 kB / 426.1 MB, free: 40.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.2611, allocations: 120.1 kB / 426.2 MB, free: 40.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.2612, allocations: 4.094 kB / 426.2 MB, free: 40.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2612, allocations: 41.59 kB / 426.2 MB, free: 40.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.064e-06/0.2612, allocations: 0 / 426.2 MB, free: 40.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007728/0.262, allocations: 350.2 kB / 426.6 MB, free: 40.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.262, allocations: 209 kB / 426.8 MB, free: 40.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005249/0.2626, allocations: 0.5683 MB / 427.4 MB, free: 40.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.2626, allocations: 30.52 kB / 427.4 MB, free: 40.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.2627, allocations: 271.4 kB / 427.6 MB, free: 40.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.2628, allocations: 38.97 kB / 427.7 MB, free: 40.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.439e-05/0.2628, allocations: 3.438 kB / 427.7 MB, free: 40.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.317e-05/0.2629, allocations: 354.2 kB / 428 MB, free: 39.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.2631, allocations: 111.7 kB / 428.1 MB, free: 39.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.2634, allocations: 241.3 kB / 428.4 MB, free: 39.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.2636, allocations: 91.69 kB / 428.5 MB, free: 39.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2636, allocations: 7.953 kB / 428.5 MB, free: 39.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000558/0.2641, allocations: 327.3 kB / 428.8 MB, free: 39.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.2642, allocations: 6.469 kB / 428.8 MB, free: 39.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2642, allocations: 3.25 kB / 428.8 MB, free: 39.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2642, allocations: 3.062 kB / 428.8 MB, free: 39.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.2644, allocations: 54.16 kB / 428.9 MB, free: 39.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2644, allocations: 2.969 kB / 428.9 MB, free: 39.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.2649, allocations: 151.3 kB / 429 MB, free: 39.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.2649, allocations: 9.641 kB / 429 MB, free: 39.57 MB / 350.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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.2651, allocations: 186.2 kB / 429.2 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.294e-05/0.2652, allocations: 47.08 kB / 429.2 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000606/0.2658, allocations: 289 kB / 429.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.2658, allocations: 0 / 429.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2658, allocations: 4.547 kB / 429.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2658, allocations: 4.734 kB / 429.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009351/0.2668, allocations: 0.7849 MB / 430.3 MB, free: 39.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2668, allocations: 0 / 430.3 MB, free: 39.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.2669, allocations: 36.41 kB / 430.4 MB, free: 39.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2669, allocations: 3.375 kB / 430.4 MB, free: 39.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.267, allocations: 4.031 kB / 430.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.267, allocations: 6.484 kB / 430.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.267, allocations: 0.75 kB / 430.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007523/0.2677, allocations: 0.498 MB / 430.9 MB, free: 38.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.2679, allocations: 158.7 kB / 431 MB, free: 38.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.268, allocations: 14.27 kB / 431 MB, free: 38.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005384/0.2685, allocations: 138.5 kB / 431.2 MB, free: 38.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/0.2688, allocations: 130.6 kB / 431.3 MB, free: 38.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.2688, allocations: 10.41 kB / 431.3 MB, free: 38.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003767/0.2692, allocations: 418.9 kB / 431.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2692, allocations: 1.781 kB / 431.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.2696, allocations: 97.66 kB / 431.8 MB, free: 38.67 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001549/0.2711, allocations: 1.296 MB / 433.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005351/0.2717, allocations: 264.9 kB / 433.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2717, allocations: 3.219 kB / 433.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002875/0.272, allocations: 153.3 kB / 433.5 MB, free: 37.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005349/0.2725, allocations: 102 kB / 433.6 MB, free: 37.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003894/0.2764, allocations: 2.917 MB / 436.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.2767, allocations: 0.8267 MB / 437.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002443/0.2769, allocations: 74.2 kB / 437.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.2772, allocations: 143.9 kB / 437.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of SimCode: time 1.512e-06/0.2772, allocations: 0 / 437.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01905/0.2962, allocations: 10.68 MB / 448.3 MB, free: 35.53 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001406/0.2964, allocations: 237.5 kB / 448.5 MB, free: 35.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.105, allocations: 0 / 448.5 MB, free: 35.29 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1) Environment - environmentSimulation: