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.0007271/0.0007271, allocations: 102.6 kB / 16.07 MB, free: 32 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.0007599/0.0007599, allocations: 180.9 kB / 16.96 MB, free: 6.902 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.25/1.25, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1496/0.1496, allocations: 8.08 MB / 300.2 MB, free: 2.777 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002777, allocations: 12 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.08484, allocations: 52.51 MB / 416.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.00475/0.08963, allocations: 4.268 MB / 420.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.09158, allocations: 1.413 MB / 421.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.09176, allocations: 8 kB / 421.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007337/0.0925, allocations: 478.5 kB / 422.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006144/0.09313, allocations: 390.3 kB / 422.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001583/0.09472, allocations: 1.001 MB / 423.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1563/0.2511, allocations: 0.8083 MB / 424.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.2515, allocations: 259.8 kB / 424.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003853/0.2519, allocations: 325 kB / 425 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005123/0.2525, allocations: 0.5174 MB / 425.6 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.208e-05/0.2525, allocations: 38.97 kB / 425.6 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005352/0.2531, allocations: 264.9 kB / 425.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002304/0.2533, allocations: 384.5 kB / 426.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.2536, allocations: 0.5679 MB / 426.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009706/0.2546, allocations: 1.574 MB / 428.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2546, allocations: 6.594 kB / 428.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2546, allocations: 0 / 428.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.2547, allocations: 0 / 428.4 MB, free: 34.54 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004207/0.2589, allocations: 1.897 MB / 430.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.2589, allocations: 9.469 kB / 430.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.259, allocations: 102.4 kB / 430.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.2592, allocations: 151.8 kB / 430.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009857/0.2602, allocations: 0.9848 MB / 431.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.472e-05/0.2603, allocations: 195.6 kB / 431.7 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.719e-05/0.2604, allocations: 59.69 kB / 431.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.2616, allocations: 0.8674 MB / 432.6 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.2616, allocations: 0 / 432.6 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.2617, allocations: 25.94 kB / 432.7 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2617, allocations: 13.09 kB / 432.7 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.2628, allocations: 0.7303 MB / 433.4 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004019/0.2668, allocations: 4.103 MB / 437.5 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/0.2685, allocations: 1.301 MB / 438.8 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007943/0.2693, allocations: 0.5645 MB / 439.4 MB, free: 30.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.149e-05/0.2693, allocations: 16.34 kB / 439.4 MB, free: 30.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.2694, allocations: 54.17 kB / 439.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 1.854e-06/0.2694, allocations: 0 / 439.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01/0.2794, allocations: 3.241 MB / 442.7 MB, free: 29.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.2794, allocations: 245 kB / 442.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.281, allocations: 1.805 MB / 444.7 MB, free: 28.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.759e-05/0.2811, allocations: 47.86 kB / 444.8 MB, free: 28.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002867/0.2814, allocations: 490.1 kB / 445.2 MB, free: 28.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.2815, allocations: 292.6 kB / 445.5 MB, free: 28.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/0.2816, allocations: 76.22 kB / 445.6 MB, free: 28.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.571e-05/0.2817, allocations: 335 kB / 445.9 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006323/0.2823, allocations: 437.1 kB / 446.4 MB, free: 27.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006853/0.283, allocations: 0.5463 MB / 446.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008132/0.2912, allocations: 2.656 MB / 449.6 MB, free: 26.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.2912, allocations: 0 / 449.6 MB, free: 26.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003569/0.2947, allocations: 1.754 MB / 451.3 MB, free: 25.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2948, allocations: 6.812 kB / 451.3 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2948, allocations: 0 / 451.3 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00259/0.2974, allocations: 0.8208 MB / 452.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.2978, allocations: 123.5 kB / 452.3 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002133/0.2999, allocations: 1.489 MB / 453.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.3005, allocations: 87.61 kB / 453.8 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.674e-05/0.3006, allocations: 25.89 kB / 453.9 MB, free: 24.7 MB / 350.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.000525/0.3011, allocations: 453.8 kB / 454.3 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.3013, allocations: 124.4 kB / 454.4 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003813/0.3051, allocations: 1.796 MB / 456.2 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.3051, allocations: 13.84 kB / 456.2 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3051, allocations: 0 / 456.2 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3051, allocations: 6.797 kB / 456.2 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005294/0.3104, allocations: 3.436 MB / 459.7 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3104, allocations: 0 / 459.7 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.3108, allocations: 106.2 kB / 459.8 MB, free: 22.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002642/0.3134, allocations: 0.7941 MB / 460.6 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.893e-05/0.3135, allocations: 20 kB / 460.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002178/0.3157, allocations: 1.465 MB / 462.1 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3157, allocations: 1 kB / 462.1 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004542/0.3203, allocations: 2.382 MB / 464.4 MB, free: 19.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.3205, allocations: 285.1 kB / 464.7 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.3207, allocations: 20.38 kB / 464.7 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005579/0.3213, allocations: 60.17 kB / 464.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3214, allocations: 64.55 kB / 464.9 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.409e-05/0.3215, allocations: 29.42 kB / 464.9 MB, free: 19.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001429/0.3229, allocations: 1.303 MB / 466.2 MB, free: 19.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3229, allocations: 0 / 466.2 MB, free: 19.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006354/0.3235, allocations: 251 kB / 466.4 MB, free: 19.13 MB / 350.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.005358/0.3289, allocations: 3.126 MB / 469.6 MB, free: 17.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003522/0.3324, allocations: 1.376 MB / 470.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3325, allocations: 1 kB / 470.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002599/0.3351, allocations: 0.867 MB / 471.8 MB, free: 16.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007433/0.3358, allocations: 112.8 kB / 471.9 MB, free: 16.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/0.3593, allocations: 15.11 MB / 487 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006067/0.36, allocations: 1.181 MB / 488.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003676/0.3604, allocations: 166.1 kB / 488.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/0.3608, allocations: 434.7 kB / 488.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3608, allocations: 0 / 488.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03751/0.3984, allocations: 26.27 MB / 0.503 GB, free: 13.99 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.3986, allocations: 273.9 kB / 0.5033 GB, free: 13.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.542, allocations: 0 / 0.5033 GB, free: 13.61 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)