Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.001429/0.001429, allocations: 115.3 kB / 17.17 MB, free: 5.719 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.00143/0.00143, allocations: 197.3 kB / 20.12 MB, free: 2.809 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.41/1.41, allocations: 225.6 MB / 248.5 MB, free: 3.617 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.05612/0.05612, allocations: 8.231 MB / 311.6 MB, free: 2.047 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.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 67.89 kB / 434 MB, free: 11.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2534, allocations: 54.35 MB / 488.3 MB, free: 27.47 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003294/0.2567, allocations: 2.413 MB / 490.7 MB, free: 25.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007541/0.2575, allocations: 0.5052 MB / 491.3 MB, free: 25.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.2576, allocations: 3.125 kB / 491.3 MB, free: 25.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003852/0.258, allocations: 90.72 kB / 491.3 MB, free: 25.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.2581, allocations: 90.23 kB / 491.4 MB, free: 25.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.2583, allocations: 85.75 kB / 491.5 MB, free: 24.97 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002391/0.2586, allocations: 274.7 kB / 491.8 MB, free: 24.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.2588, allocations: 73.31 kB / 491.9 MB, free: 24.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.2589, allocations: 121.7 kB / 492 MB, free: 24.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.2591, allocations: 139.4 kB / 492.1 MB, free: 24.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.744e-05/0.2591, allocations: 27.94 kB / 492.1 MB, free: 24.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.2593, allocations: 85.16 kB / 492.2 MB, free: 24.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.2594, allocations: 109 kB / 492.3 MB, free: 24.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.2595, allocations: 159.3 kB / 492.5 MB, free: 24.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003882/0.2599, allocations: 404.8 kB / 492.9 MB, free: 24.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2599, allocations: 1.031 kB / 492.9 MB, free: 24.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2599, allocations: 0 / 492.9 MB, free: 24.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.2599, allocations: 0 / 492.9 MB, free: 24.08 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001619/0.2615, allocations: 0.8094 MB / 493.7 MB, free: 23.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2616, allocations: 13.48 kB / 493.7 MB, free: 23.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.084e-05/0.2616, allocations: 53.61 kB / 493.8 MB, free: 23.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/0.2617, allocations: 39.81 kB / 493.8 MB, free: 23.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.2621, allocations: 347 kB / 494.1 MB, free: 23.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2621, allocations: 12.95 kB / 494.1 MB, free: 23.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.2622, allocations: 18 kB / 494.2 MB, free: 23.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.2626, allocations: 279.5 kB / 494.4 MB, free: 22.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.2626, allocations: 3.938 kB / 494.4 MB, free: 22.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.2626, allocations: 10.75 kB / 494.5 MB, free: 22.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.2626, allocations: 4.125 kB / 494.5 MB, free: 22.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.263, allocations: 198.1 kB / 494.6 MB, free: 22.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.2641, allocations: 0.8411 MB / 495.5 MB, free: 22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.2647, allocations: 293.8 kB / 495.8 MB, free: 21.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/0.265, allocations: 133.9 kB / 495.9 MB, free: 21.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.265, allocations: 6.828 kB / 495.9 MB, free: 21.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.265, allocations: 32.34 kB / 495.9 MB, free: 21.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.265, allocations: 0 / 495.9 MB, free: 21.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006549/0.2657, allocations: 282.7 kB / 496.2 MB, free: 21.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.2658, allocations: 213 kB / 496.4 MB, free: 21.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.2661, allocations: 367.9 kB / 496.8 MB, free: 21.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.2661, allocations: 31.2 kB / 496.8 MB, free: 21.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.185e-05/0.2662, allocations: 175.8 kB / 497 MB, free: 20.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.2662, allocations: 40.92 kB / 497 MB, free: 20.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.908e-05/0.2663, allocations: 36.34 kB / 497.1 MB, free: 20.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.235e-05/0.2664, allocations: 336.4 kB / 497.4 MB, free: 20.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.2666, allocations: 82.47 kB / 497.5 MB, free: 20.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.2668, allocations: 157.2 kB / 497.6 MB, free: 20.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000683/0.2675, allocations: 238.8 kB / 497.9 MB, free: 20.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2675, allocations: 5.375 kB / 497.9 MB, free: 20.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004228/0.2679, allocations: 215.6 kB / 498.1 MB, free: 20.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2679, allocations: 9.375 kB / 498.1 MB, free: 20.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2679, allocations: 5.062 kB / 498.1 MB, free: 20.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.2679, allocations: 2.031 kB / 498.1 MB, free: 20.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.2681, allocations: 36.52 kB / 498.1 MB, free: 20.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.2681, allocations: 2.531 kB / 498.1 MB, free: 20.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004322/0.2685, allocations: 86.41 kB / 498.2 MB, free: 20.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.343e-05/0.2685, allocations: 5.812 kB / 498.2 MB, free: 20.01 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0002259/0.2688, allocations: 168.8 kB / 498.4 MB, free: 19.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.515e-05/0.2688, allocations: 27.59 kB / 498.4 MB, free: 19.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005358/0.2694, allocations: 229.7 kB / 498.6 MB, free: 19.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2694, allocations: 2.312 kB / 498.6 MB, free: 19.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.2694, allocations: 4 kB / 498.6 MB, free: 19.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2694, allocations: 0 / 498.6 MB, free: 19.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008464/0.2702, allocations: 0.6599 MB / 499.3 MB, free: 19.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2702, allocations: 0 / 499.3 MB, free: 19.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.2704, allocations: 34.27 kB / 499.3 MB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2704, allocations: 1.062 kB / 499.3 MB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.2704, allocations: 10.06 kB / 499.3 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2704, allocations: 1.094 kB / 499.3 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2704, allocations: 0 / 499.3 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006434/0.271, allocations: 426.9 kB / 499.8 MB, free: 18.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.632e-05/0.2711, allocations: 112.4 kB / 499.9 MB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.057e-05/0.2712, allocations: 15.08 kB / 499.9 MB, free: 18.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004605/0.2716, allocations: 85.67 kB / 500 MB, free: 18.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.2719, allocations: 128.3 kB / 0.4884 GB, free: 18.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.2719, allocations: 4.875 kB / 0.4884 GB, free: 18.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002537/0.2721, allocations: 280.9 kB / 0.4887 GB, free: 18.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2721, allocations: 0 / 0.4887 GB, free: 18.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.2725, allocations: 66.02 kB / 0.4887 GB, free: 18.42 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.001538/0.274, allocations: 1.128 MB / 0.4898 GB, free: 17.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004643/0.2745, allocations: 195.4 kB / 0.49 GB, free: 17.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2745, allocations: 1.438 kB / 0.49 GB, free: 17.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002545/0.2747, allocations: 130.6 kB / 0.4901 GB, free: 17.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.275, allocations: 24.31 kB / 0.4902 GB, free: 17.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004154/0.2792, allocations: 3.096 MB / 0.4932 GB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.2794, allocations: 0.7602 MB / 0.4939 GB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001538/0.2796, allocations: 40.17 kB / 0.494 GB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.2797, allocations: 83.97 kB / 0.494 GB, free: 14.44 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2797, allocations: 0 / 0.494 GB, free: 14.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.3114, allocations: 8.227 MB / 0.5021 GB, free: 10.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.217, allocations: 6.484 kB / 0.5021 GB, free: 10.21 MB / 366.1 MB " [Timeout remaining time 652] (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.108479220885783] Failed to read output from testmodel.py, exit status != 0: 8.340227991808206 8.358896622 8.094184076 Calling exit ...