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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 110.5 kB / 17.17 MB, free: 5.887 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.001977/0.001977, allocations: 196.5 kB / 20.12 MB, free: 2.945 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.451/1.451, allocations: 225.6 MB / 248.5 MB, free: 3.625 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.05247/0.05247, allocations: 8.232 MB / 311.6 MB, free: 2.102 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 63.91 kB / 434 MB, free: 11.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2733, allocations: 54.35 MB / 488.3 MB, free: 27.43 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004811/0.2781, allocations: 3.39 MB / 491.7 MB, free: 24.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.2799, allocations: 1.325 MB / 493 MB, free: 23.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002516/0.2802, allocations: 11 kB / 493.1 MB, free: 23.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005779/0.2808, allocations: 177.5 kB / 493.2 MB, free: 23.6 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004168/0.2812, allocations: 185.3 kB / 493.4 MB, free: 23.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007566/0.282, allocations: 246.3 kB / 493.7 MB, free: 23.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006565/0.2826, allocations: 0.5383 MB / 494.2 MB, free: 22.94 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.2829, allocations: 116.2 kB / 494.3 MB, free: 22.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.2831, allocations: 222.9 kB / 494.5 MB, free: 22.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000281/0.2834, allocations: 229.2 kB / 494.7 MB, free: 22.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.579e-05/0.2835, allocations: 47.94 kB / 494.8 MB, free: 22.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.2837, allocations: 87.36 kB / 494.9 MB, free: 22.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001975/0.2839, allocations: 169.9 kB / 495 MB, free: 22.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.2841, allocations: 251.3 kB / 495.3 MB, free: 22.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000746/0.2848, allocations: 0.6608 MB / 495.9 MB, free: 21.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2848, allocations: 1.219 kB / 495.9 MB, free: 21.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2848, allocations: 0 / 495.9 MB, free: 21.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.2849, allocations: 4 kB / 496 MB, free: 21.73 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002071/0.2869, allocations: 1.014 MB / 497 MB, free: 20.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.287, allocations: 13.48 kB / 497 MB, free: 20.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.11e-05/0.2871, allocations: 64.47 kB / 497 MB, free: 20.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.2872, allocations: 65.31 kB / 497.1 MB, free: 20.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007806/0.288, allocations: 0.4907 MB / 497.6 MB, free: 20.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.288, allocations: 20.31 kB / 497.6 MB, free: 20.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.288, allocations: 28 kB / 497.6 MB, free: 20.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006376/0.2887, allocations: 393.5 kB / 498 MB, free: 20.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.2887, allocations: 3.938 kB / 498 MB, free: 20.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.2887, allocations: 15.77 kB / 498 MB, free: 20.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.2887, allocations: 7.281 kB / 498.1 MB, free: 20.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004926/0.2892, allocations: 252.8 kB / 498.3 MB, free: 20.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.2913, allocations: 1.489 MB / 499.8 MB, free: 18.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000512/0.2918, allocations: 275.9 kB / 0.4883 GB, free: 18.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/0.292, allocations: 98.14 kB / 0.4884 GB, free: 18.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.471e-05/0.2921, allocations: 7.297 kB / 0.4884 GB, free: 18.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.2921, allocations: 44.88 kB / 0.4885 GB, free: 18.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.964e-06/0.2921, allocations: 0 / 0.4885 GB, free: 18.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007352/0.2928, allocations: 312.3 kB / 0.4888 GB, free: 18.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.2929, allocations: 212.4 kB / 0.489 GB, free: 18.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007073/0.2936, allocations: 0.5726 MB / 0.4895 GB, free: 17.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.2936, allocations: 31.89 kB / 0.4896 GB, free: 17.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.2938, allocations: 265.1 kB / 0.4898 GB, free: 17.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/0.2938, allocations: 42.33 kB / 0.4899 GB, free: 17.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.166e-05/0.2939, allocations: 48.33 kB / 0.4899 GB, free: 17.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.374e-05/0.294, allocations: 353.6 kB / 0.4902 GB, free: 17.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.2942, allocations: 101.7 kB / 0.4903 GB, free: 16.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.2945, allocations: 217 kB / 0.4906 GB, free: 16.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.2948, allocations: 199.1 kB / 0.4907 GB, free: 16.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2948, allocations: 5.406 kB / 0.4907 GB, free: 16.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005538/0.2954, allocations: 293.6 kB / 0.491 GB, free: 16.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.2954, allocations: 11 kB / 0.491 GB, free: 16.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.2954, allocations: 6.312 kB / 0.491 GB, free: 16.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.2954, allocations: 7.516 kB / 0.4911 GB, free: 16.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.2956, allocations: 52.03 kB / 0.4911 GB, free: 16.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.2956, allocations: 3.594 kB / 0.4911 GB, free: 16.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.2962, allocations: 107 kB / 0.4912 GB, free: 16.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.082e-05/0.2962, allocations: 10.28 kB / 0.4912 GB, free: 16.39 MB / 366.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.0001706/0.2964, allocations: 180.7 kB / 0.4914 GB, free: 16.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.016e-05/0.2965, allocations: 45.91 kB / 0.4914 GB, free: 16.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005888/0.2971, allocations: 264.1 kB / 0.4917 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2971, allocations: 2.25 kB / 0.4917 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2971, allocations: 0 / 0.4917 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2971, allocations: 1.125 kB / 0.4917 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.2981, allocations: 0.7658 MB / 0.4924 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2981, allocations: 0 / 0.4924 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001427/0.2982, allocations: 25.8 kB / 0.4925 GB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.798e-06/0.2983, allocations: 5.344 kB / 0.4925 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.2983, allocations: 2.406 kB / 0.4925 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.2983, allocations: 0 / 0.4925 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2983, allocations: 1.5 kB / 0.4925 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007184/0.299, allocations: 475.2 kB / 0.4929 GB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.2992, allocations: 155.5 kB / 0.4931 GB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.232e-05/0.2992, allocations: 2.125 kB / 0.4931 GB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005579/0.2998, allocations: 98.77 kB / 0.4932 GB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.3001, allocations: 128.8 kB / 0.4933 GB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.3001, allocations: 9.5 kB / 0.4933 GB, free: 14.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004687/0.3006, allocations: 422.6 kB / 0.4937 GB, free: 14.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3006, allocations: 0 / 0.4937 GB, free: 14.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004278/0.301, allocations: 106.2 kB / 0.4938 GB, free: 14.58 MB / 366.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.001989/0.303, allocations: 1.266 MB / 0.495 GB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005385/0.3035, allocations: 219.5 kB / 0.4952 GB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3035, allocations: 1.812 kB / 0.4953 GB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002665/0.3038, allocations: 139.2 kB / 0.4954 GB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.3044, allocations: 104.6 kB / 0.4955 GB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005468/0.3098, allocations: 4.301 MB / 0.4997 GB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.3101, allocations: 0.8208 MB / 0.5005 GB, free: 9.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002914/0.3104, allocations: 73.2 kB / 0.5006 GB, free: 9.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.3106, allocations: 161.2 kB / 0.5007 GB, free: 9.707 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3106, allocations: 3.938 kB / 0.5007 GB, free: 9.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03859/0.3492, allocations: 12.58 MB / 0.513 GB, free: 15.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.303/8.652, allocations: 8.234 kB / 0.513 GB, free: 15.03 MB / 382.1 MB " [Timeout remaining time 651] (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 --stepSize=0.1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.717720376327634] Failed to read output from testmodel.py, exit status != 0: 8.780047087930143 8.802876361 8.513636215 Calling exit ...