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.0009282/0.0009283, allocations: 95.34 kB / 15.73 MB, free: 440 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.00104/0.00104, allocations: 180.2 kB / 16.61 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.279/1.279, allocations: 223.2 MB / 240.5 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1325/0.1325, allocations: 8.09 MB / 299.7 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002833, allocations: 8 kB / 362.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08394/0.08424, allocations: 52.51 MB / 415.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003187/0.08747, allocations: 2.778 MB / 418.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.08918, allocations: 1.225 MB / 419.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.08934, allocations: 8 kB / 419.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003984/0.08974, allocations: 151.3 kB / 419.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.09007, allocations: 167.5 kB / 419.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.09052, allocations: 187.5 kB / 419.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.091, allocations: 375.8 kB / 420.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.09123, allocations: 139 kB / 420.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.09141, allocations: 163.4 kB / 420.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.09163, allocations: 187.1 kB / 420.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.382e-05/0.09169, allocations: 20 kB / 420.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.09182, allocations: 51.92 kB / 420.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.09201, allocations: 139.5 kB / 420.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.607e-05/0.0921, allocations: 109.5 kB / 421 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004445/0.09256, allocations: 494.7 kB / 421.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.09257, allocations: 0 / 421.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09258, allocations: 0 / 421.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.09259, allocations: 0 / 421.5 MB, free: 2.473 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.001937/0.09453, allocations: 0.9893 MB / 422.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.09457, allocations: 12.03 kB / 422.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.753e-05/0.09466, allocations: 66.53 kB / 422.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.642e-05/0.09476, allocations: 55.34 kB / 422.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006556/0.09542, allocations: 473.5 kB / 423.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/0.09566, allocations: 64.52 kB / 423.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.09572, allocations: 24 kB / 423.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.09638, allocations: 405.5 kB / 423.6 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.09641, allocations: 7.891 kB / 423.6 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.09645, allocations: 12 kB / 423.6 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.09646, allocations: 8 kB / 423.6 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1476/0.244, allocations: 260.2 kB / 423.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.2463, allocations: 1.547 MB / 425.4 MB, free: 40.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006217/0.2469, allocations: 334.9 kB / 425.7 MB, free: 40.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.2469, allocations: 2.531 kB / 425.7 MB, free: 40.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.247, allocations: 37.61 kB / 425.8 MB, free: 40.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.184e-06/0.247, allocations: 0.9844 kB / 425.8 MB, free: 40.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008202/0.2478, allocations: 346.1 kB / 426.1 MB, free: 40.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.2479, allocations: 214.6 kB / 426.3 MB, free: 40.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005416/0.2484, allocations: 0.5696 MB / 426.9 MB, free: 40.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.2484, allocations: 32.33 kB / 426.9 MB, free: 40.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.2486, allocations: 272.4 kB / 427.2 MB, free: 40.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.2486, allocations: 39.88 kB / 427.2 MB, free: 40.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.385e-05/0.2486, allocations: 3.25 kB / 427.2 MB, free: 40.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.959e-05/0.2487, allocations: 351 kB / 427.6 MB, free: 39.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002535/0.249, allocations: 117.6 kB / 427.7 MB, free: 39.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.2492, allocations: 232.9 kB / 427.9 MB, free: 39.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.2495, allocations: 95.61 kB / 428 MB, free: 39.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2495, allocations: 0 / 428 MB, free: 39.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005897/0.2501, allocations: 325.1 kB / 428.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.2501, allocations: 3.344 kB / 428.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2501, allocations: 4.938 kB / 428.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2501, allocations: 3.594 kB / 428.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.2504, allocations: 63.02 kB / 428.4 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.2504, allocations: 3.344 kB / 428.4 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005889/0.251, allocations: 145.6 kB / 428.5 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.251, allocations: 12.91 kB / 428.5 MB, free: 39.46 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.0001559/0.2512, allocations: 182.1 kB / 428.7 MB, free: 39.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-05/0.2512, allocations: 46.83 kB / 428.8 MB, free: 39.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006507/0.2519, allocations: 293.2 kB / 429.1 MB, free: 39.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2519, allocations: 0 / 429.1 MB, free: 39.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2519, allocations: 0.9375 kB / 429.1 MB, free: 39.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2519, allocations: 4.406 kB / 429.1 MB, free: 39.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.253, allocations: 0.7874 MB / 429.9 MB, free: 38.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.253, allocations: 4.031 kB / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.2532, allocations: 40.62 kB / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2532, allocations: 0 / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.2532, allocations: 5.953 kB / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2532, allocations: 0 / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2532, allocations: 0 / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007945/0.254, allocations: 0.5105 MB / 430.4 MB, free: 38.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.2542, allocations: 165.4 kB / 430.6 MB, free: 38.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.544e-05/0.2543, allocations: 3.062 kB / 430.6 MB, free: 38.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006507/0.2549, allocations: 144 kB / 430.7 MB, free: 38.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/0.2552, allocations: 131.8 kB / 430.8 MB, free: 38.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.2552, allocations: 3.375 kB / 430.8 MB, free: 38.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004231/0.2556, allocations: 423.5 kB / 431.3 MB, free: 38.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2557, allocations: 0.6562 kB / 431.3 MB, free: 38.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003915/0.2561, allocations: 105.7 kB / 431.4 MB, free: 38.55 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.001631/0.2577, allocations: 1.382 MB / 432.7 MB, free: 37.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005686/0.2583, allocations: 255.2 kB / 433 MB, free: 37.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2583, allocations: 3.219 kB / 433 MB, free: 37.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.2586, allocations: 165.2 kB / 433.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.2591, allocations: 89.2 kB / 433.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.2632, allocations: 4.385 MB / 437.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.2635, allocations: 0.8372 MB / 438.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002197/0.2637, allocations: 70.95 kB / 438.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.2639, allocations: 144.3 kB / 438.7 MB, free: 34.56 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2639, allocations: 4 kB / 438.7 MB, free: 34.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.2823, allocations: 10.66 MB / 449.3 MB, free: 33.83 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.2825, allocations: 221.6 kB / 449.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/2.123, allocations: 3.875 kB / 449.6 MB, free: 33.59 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: