Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",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.001155/0.001155, allocations: 106 kB / 16.31 MB, free: 6.391 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.001174/0.001174, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.334/1.334, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05117/0.05117, allocations: 8.1 MB / 299.2 MB, free: 6.746 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 67.91 kB / 361.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1996, allocations: 51.5 MB / 413.4 MB, free: 25.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.003768/0.2034, allocations: 4.681 MB / 418 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.2048, allocations: 1.454 MB / 419.5 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.205, allocations: 8 kB / 419.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005787/0.2056, allocations: 0.4902 MB / 420 MB, free: 18.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004546/0.206, allocations: 425.8 kB / 420.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.2073, allocations: 1.062 MB / 421.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.2078, allocations: 0.8482 MB / 422.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000277/0.208, allocations: 310.8 kB / 422.6 MB, free: 16.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.2082, allocations: 386.7 kB / 423 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.2086, allocations: 0.5646 MB / 423.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.655e-05/0.2087, allocations: 80 kB / 423.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003334/0.2091, allocations: 315.8 kB / 423.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001855/0.2093, allocations: 422.7 kB / 424.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002974/0.2096, allocations: 0.6138 MB / 425 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008193/0.2104, allocations: 1.655 MB / 426.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.2104, allocations: 0 / 426.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2104, allocations: 0 / 426.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.2104, allocations: 0 / 426.6 MB, free: 12.29 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004074/0.2145, allocations: 2.111 MB / 428.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.605e-05/0.2145, allocations: 15.89 kB / 428.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.64e-05/0.2146, allocations: 102.7 kB / 428.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.2148, allocations: 143.2 kB / 429 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008539/0.2156, allocations: 0.9977 MB / 430 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.991e-05/0.2157, allocations: 190.4 kB / 430.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.176e-05/0.2158, allocations: 60.38 kB / 430.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009779/0.2168, allocations: 0.8555 MB / 431.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.2168, allocations: 0 / 431.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.2169, allocations: 24 kB / 431.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.2169, allocations: 16 kB / 431.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009095/0.2178, allocations: 0.7157 MB / 431.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00356/0.2214, allocations: 4.077 MB / 435.9 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.2229, allocations: 1.283 MB / 437.2 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006983/0.2236, allocations: 0.5544 MB / 437.8 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.18e-05/0.2237, allocations: 24.95 kB / 437.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.2237, allocations: 47.5 kB / 437.8 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 1.933e-06/0.2238, allocations: 0 / 437.8 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.009972/0.2337, allocations: 3.134 MB / 441 MB, free: 13.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.735e-05/0.2338, allocations: 244.3 kB / 441.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001888/0.2357, allocations: 1.809 MB / 443 MB, free: 11.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.757e-05/0.2358, allocations: 41.7 kB / 443 MB, free: 11.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000351/0.2362, allocations: 0.49 MB / 443.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.2363, allocations: 279.8 kB / 443.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.2366, allocations: 150.7 kB / 444 MB, free: 10.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.479e-05/0.2367, allocations: 337.9 kB / 444.3 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006603/0.2373, allocations: 421.8 kB / 444.7 MB, free: 9.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007395/0.2381, allocations: 0.5462 MB / 445.2 MB, free: 8.953 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008107/0.2462, allocations: 2.607 MB / 447.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2462, allocations: 0 / 447.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003605/0.2498, allocations: 1.71 MB / 449.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2499, allocations: 8 kB / 449.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.2499, allocations: 0 / 449.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002576/0.2524, allocations: 0.8167 MB / 450.4 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.2529, allocations: 119.9 kB / 450.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.2551, allocations: 1.476 MB / 452 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/0.2557, allocations: 87.33 kB / 452.1 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.455e-05/0.2558, allocations: 28 kB / 452.1 MB, free: 2.055 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0005214/0.2563, allocations: 449.6 kB / 452.5 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.2565, allocations: 118.5 kB / 452.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.2602, allocations: 1.764 MB / 454.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.2603, allocations: 8 kB / 454.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.2603, allocations: 0 / 454.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.2603, allocations: 7.984 kB / 454.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005529/0.2658, allocations: 3.382 MB / 457.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.2658, allocations: 4 kB / 457.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.2662, allocations: 103.9 kB / 457.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002557/0.2688, allocations: 0.7773 MB / 458.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.322e-05/0.2688, allocations: 31.92 kB / 458.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002207/0.2711, allocations: 1.459 MB / 460.2 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2711, allocations: 4 kB / 460.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004484/0.2756, allocations: 2.335 MB / 462.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.2759, allocations: 279.4 kB / 462.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.276, allocations: 16 kB / 462.8 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005166/0.2765, allocations: 59.95 kB / 462.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.2767, allocations: 64.91 kB / 462.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/0.2767, allocations: 28 kB / 463 MB, free: 7.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001435/0.2782, allocations: 1.302 MB / 464.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2782, allocations: 0 / 464.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005851/0.2788, allocations: 247.7 kB / 464.5 MB, free: 5.473 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005057/0.2839, allocations: 3.079 MB / 467.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003575/0.2874, allocations: 1.39 MB / 469 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2875, allocations: 0 / 469 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00241/0.2899, allocations: 0.8524 MB / 469.8 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.2905, allocations: 112.5 kB / 469.9 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/0.316, allocations: 14.7 MB / 484.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007603/0.3168, allocations: 1.177 MB / 485.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004074/0.3172, allocations: 163.2 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005589/0.3177, allocations: 439.3 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3178, allocations: 4 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1914/0.5092, allocations: 28.06 MB / 0.5024 GB, free: 3.301 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.88, allocations: 3.938 kB / 0.5024 GB, free: 3.297 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)