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: "" <> 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.001227/0.001227, allocations: 104.1 kB / 16.31 MB, free: 5.879 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.001227/0.001227, allocations: 187 kB / 17.24 MB, free: 5.539 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.438/1.438, allocations: 222.9 MB / 240.9 MB, free: 15.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05183/0.05183, allocations: 8.094 MB / 299.2 MB, free: 6.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 59.89 kB / 361.8 MB, free: 8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1948, allocations: 51.53 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004057/0.1989, allocations: 3.352 MB / 416.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.2005, allocations: 1.321 MB / 418 MB, free: 20.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.2007, allocations: 4 kB / 418 MB, free: 20.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004731/0.2012, allocations: 186.9 kB / 418.2 MB, free: 20.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003197/0.2015, allocations: 182.8 kB / 418.4 MB, free: 20.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.202, allocations: 243.1 kB / 418.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003623/0.2023, allocations: 0.5376 MB / 419.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.2026, allocations: 172.7 kB / 419.3 MB, free: 19.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.2027, allocations: 211.2 kB / 419.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.2029, allocations: 227 kB / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-05/0.203, allocations: 47.94 kB / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.2032, allocations: 91.91 kB / 419.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.2033, allocations: 151.6 kB / 420 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001687/0.2035, allocations: 262.6 kB / 420.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004275/0.2039, allocations: 0.6307 MB / 420.9 MB, free: 17.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.204, allocations: 4 kB / 420.9 MB, free: 17.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.204, allocations: 4 kB / 420.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.204, allocations: 0 / 420.9 MB, free: 17.93 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.001856/0.2058, allocations: 1.009 MB / 422 MB, free: 16.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2059, allocations: 15.89 kB / 422 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.573e-05/0.2059, allocations: 58.73 kB / 422 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.569e-05/0.206, allocations: 56.28 kB / 422.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005087/0.2065, allocations: 494.4 kB / 422.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.2068, allocations: 64.77 kB / 422.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/0.2068, allocations: 27.98 kB / 422.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005953/0.2074, allocations: 405.6 kB / 423 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.2074, allocations: 0 / 423 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.2075, allocations: 12 kB / 423.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.2075, allocations: 4 kB / 423.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005178/0.208, allocations: 270 kB / 423.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.2101, allocations: 1.523 MB / 424.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006601/0.2108, allocations: 315.4 kB / 425.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002672/0.2111, allocations: 112.8 kB / 425.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.137e-05/0.2111, allocations: 11.97 kB / 425.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.2111, allocations: 46.44 kB / 425.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.094e-06/0.2112, allocations: 0 / 425.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008656/0.212, allocations: 333.2 kB / 425.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.2121, allocations: 213.6 kB / 425.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.2126, allocations: 0.5721 MB / 426.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.2127, allocations: 37.69 kB / 426.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.2128, allocations: 259.7 kB / 426.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/0.2129, allocations: 43.36 kB / 426.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.609e-05/0.2129, allocations: 49.7 kB / 426.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.919e-05/0.213, allocations: 350.8 kB / 427.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.2133, allocations: 111.8 kB / 427.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.2136, allocations: 242 kB / 427.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000421/0.214, allocations: 217.2 kB / 427.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.214, allocations: 0 / 427.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006359/0.2147, allocations: 319.8 kB / 428 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.2147, allocations: 11.94 kB / 428 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2147, allocations: 0 / 428 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.2147, allocations: 4 kB / 428 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.215, allocations: 60.02 kB / 428.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.215, allocations: 4 kB / 428.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/0.2156, allocations: 111.7 kB / 428.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.2157, allocations: 12 kB / 428.2 MB, free: 10.2 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.0001719/0.2158, allocations: 185.8 kB / 428.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.888e-05/0.2159, allocations: 43.47 kB / 428.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006879/0.2166, allocations: 277.2 kB / 428.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.2166, allocations: 0 / 428.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2166, allocations: 0 / 428.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2167, allocations: 3.984 kB / 428.7 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.2177, allocations: 0.7837 MB / 429.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2177, allocations: 0 / 429.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.2179, allocations: 36 kB / 429.5 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2179, allocations: 0 / 429.5 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.2179, allocations: 8 kB / 429.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.218, allocations: 96 / 429.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.218, allocations: 3.938 kB / 429.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008189/0.2188, allocations: 499.5 kB / 430 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.2189, allocations: 156.5 kB / 430.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.729e-05/0.219, allocations: 4 kB / 430.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006529/0.2197, allocations: 107.9 kB / 430.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.2199, allocations: 123.8 kB / 430.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.22, allocations: 4 kB / 430.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004134/0.2204, allocations: 431.1 kB / 430.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.232e-06/0.2204, allocations: 0 / 430.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004108/0.2208, allocations: 107.7 kB / 431 MB, free: 7.352 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.001703/0.2225, allocations: 1.298 MB / 432.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006118/0.2231, allocations: 260.1 kB / 432.5 MB, free: 5.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2232, allocations: 0 / 432.5 MB, free: 5.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.2235, allocations: 155.8 kB / 432.7 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005677/0.2241, allocations: 109.7 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.004997/0.2291, allocations: 4.406 MB / 437.2 MB, free: 1.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.2293, allocations: 0.8191 MB / 438 MB, free: 252 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002317/0.2295, allocations: 75.22 kB / 438.1 MB, free: 176 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.2297, allocations: 151.6 kB / 438.2 MB, free: 24 kB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2297, allocations: 0 / 438.2 MB, free: 24 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03324/0.263, allocations: 12.45 MB / 450.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.524/7.787, allocations: 7.688 kB / 450.7 MB, free: 3.738 MB / 318.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/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)