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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 108.4 kB / 17.17 MB, free: 5.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 197.4 kB / 20.12 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 225.6 MB / 248.5 MB, free: 3.652 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04962/0.04962, allocations: 8.228 MB / 311.6 MB, free: 2.145 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 67.89 kB / 434 MB, free: 11.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2376, allocations: 54.35 MB / 488.3 MB, free: 27.5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.00465/0.2422, allocations: 4.717 MB / 493 MB, free: 23.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.2441, allocations: 1.448 MB / 494.5 MB, free: 22.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.2443, allocations: 11 kB / 494.5 MB, free: 22.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000726/0.245, allocations: 0.4928 MB / 495 MB, free: 22.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005803/0.2456, allocations: 427.4 kB / 495.4 MB, free: 22.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.2471, allocations: 1.082 MB / 496.5 MB, free: 21.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007518/0.2478, allocations: 0.8447 MB / 497.3 MB, free: 20.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.2481, allocations: 225.3 kB / 497.6 MB, free: 20.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002999/0.2484, allocations: 385.8 kB / 497.9 MB, free: 20.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005797/0.249, allocations: 0.59 MB / 498.5 MB, free: 20 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.2491, allocations: 82.95 kB / 498.6 MB, free: 20 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005041/0.2496, allocations: 314 kB / 498.9 MB, free: 19.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002659/0.2499, allocations: 417.3 kB / 499.3 MB, free: 19.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003781/0.2503, allocations: 0.6134 MB / 499.9 MB, free: 19.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.2517, allocations: 1.675 MB / 0.4899 GB, free: 18.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2517, allocations: 1.219 kB / 0.4899 GB, free: 18.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2517, allocations: 0 / 0.4899 GB, free: 18.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.2517, allocations: 0 / 0.4899 GB, free: 18.01 MB / 366.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.004981/0.2567, allocations: 2.156 MB / 0.492 GB, free: 16.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.2568, allocations: 21.66 kB / 0.492 GB, free: 16.49 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.2569, allocations: 102.7 kB / 0.4921 GB, free: 16.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.2571, allocations: 153.3 kB / 0.4922 GB, free: 16.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.2584, allocations: 0.9946 MB / 0.4932 GB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.2585, allocations: 197.1 kB / 0.4934 GB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.265e-05/0.2586, allocations: 55.19 kB / 0.4934 GB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.2598, allocations: 0.8571 MB / 0.4943 GB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.2599, allocations: 0 / 0.4943 GB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.2599, allocations: 26.81 kB / 0.4943 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.2599, allocations: 13.69 kB / 0.4943 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.2611, allocations: 0.7219 MB / 0.495 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004695/0.2658, allocations: 4.06 MB / 0.499 GB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.2675, allocations: 1.199 MB / 0.5002 GB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007338/0.2682, allocations: 0.4887 MB / 0.5006 GB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.869e-05/0.2683, allocations: 20.12 kB / 0.5007 GB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.2683, allocations: 48.66 kB / 0.5007 GB, free: 9.969 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 2.264e-06/0.2683, allocations: 0 / 0.5007 GB, free: 9.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.00963/0.2779, allocations: 3.111 MB / 0.5037 GB, free: 8.227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.278, allocations: 258.4 kB / 0.504 GB, free: 7.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.2797, allocations: 1.811 MB / 0.5058 GB, free: 6.312 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.113e-05/0.2798, allocations: 41.7 kB / 0.5058 GB, free: 6.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.2801, allocations: 494.2 kB / 0.5063 GB, free: 5.781 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.2802, allocations: 301.3 kB / 0.5066 GB, free: 5.484 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.2804, allocations: 150.6 kB / 0.5067 GB, free: 5.332 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.362e-05/0.2805, allocations: 334 kB / 0.507 GB, free: 5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00058/0.281, allocations: 429.8 kB / 0.5074 GB, free: 4.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006328/0.2817, allocations: 0.5385 MB / 0.5079 GB, free: 4.012 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00741/0.2891, allocations: 2.588 MB / 0.5105 GB, free: 1.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2891, allocations: 0 / 0.5105 GB, free: 1.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003588/0.2927, allocations: 1.687 MB / 0.5121 GB, free: 15.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.2927, allocations: 8 kB / 0.5121 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.2927, allocations: 0 / 0.5121 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/0.2955, allocations: 0.8203 MB / 0.5129 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.2959, allocations: 127.8 kB / 0.5131 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002558/0.2985, allocations: 1.468 MB / 0.5145 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008407/0.2993, allocations: 87.56 kB / 0.5146 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.508e-05/0.2994, allocations: 31.98 kB / 0.5146 GB, free: 13.14 MB / 382.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.0008265/0.3002, allocations: 441.6 kB / 0.515 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.3004, allocations: 127.2 kB / 0.5151 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004274/0.3047, allocations: 1.736 MB / 0.5168 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3047, allocations: 8 kB / 0.5168 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3047, allocations: 0 / 0.5168 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.3047, allocations: 7.984 kB / 0.5169 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00686/0.3116, allocations: 3.361 MB / 0.5201 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3116, allocations: 0 / 0.5201 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.312, allocations: 107.8 kB / 0.5202 GB, free: 7.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002731/0.3147, allocations: 0.781 MB / 0.521 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.454e-05/0.3148, allocations: 24 kB / 0.521 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002563/0.3174, allocations: 1.463 MB / 0.5225 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3174, allocations: 3.938 kB / 0.5225 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005196/0.3226, allocations: 2.303 MB / 0.5247 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007175/0.3233, allocations: 288.1 kB / 0.525 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002945/0.3236, allocations: 19.98 kB / 0.525 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006853/0.3243, allocations: 48.03 kB / 0.525 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.3244, allocations: 64.91 kB / 0.5251 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-05/0.3245, allocations: 31.92 kB / 0.5251 GB, free: 2.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002315/0.3268, allocations: 1.302 MB / 0.5264 GB, free: 0.875 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3268, allocations: 3.938 kB / 0.5264 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009595/0.3278, allocations: 251.7 kB / 0.5267 GB, free: 0.625 MB / 382.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.006415/0.3342, allocations: 3.061 MB / 0.5296 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003711/0.3379, allocations: 1.294 MB / 0.5309 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.3379, allocations: 3.938 kB / 0.5309 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002557/0.3405, allocations: 0.8053 MB / 0.5317 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.3416, allocations: 111.3 kB / 0.5318 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02561/0.3672, allocations: 13.7 MB / 0.5452 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000975/0.3682, allocations: 1.177 MB / 0.5463 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004434/0.3686, allocations: 171.2 kB / 0.5465 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006293/0.3693, allocations: 435.3 kB / 0.5469 GB, free: 11.75 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3693, allocations: 3.938 kB / 0.5469 GB, free: 11.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06553/0.4348, allocations: 28.69 MB / 0.5749 GB, free: 15.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.56, allocations: 6.75 kB / 0.5749 GB, free: 15.15 MB / 446.1 MB " [Timeout remaining time 646] (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 --stepSize=8.64 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.074456572066993] Failed to read output from testmodel.py, exit status != 0: 13.712445410899818 13.73397275 13.478259929 Calling exit ...