Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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) 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(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",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.001652/0.001652, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001674/0.001674, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.391/1.391, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 43.81 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1095, allocations: 49.44 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007294/0.1169, allocations: 5.786 MB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00408/0.121, allocations: 2.536 MB / 357.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005118/0.1215, allocations: 23.88 kB / 357.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.1232, allocations: 0.7122 MB / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008895/0.1241, allocations: 461.8 kB / 359 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.1252, allocations: 472.8 kB / 359.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001466/0.1266, allocations: 1.523 MB / 361 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006883/0.1273, allocations: 0.5279 MB / 361.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005212/0.1279, allocations: 0.5369 MB / 362.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006928/0.1286, allocations: 0.7042 MB / 362.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.1287, allocations: 80 kB / 362.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003423/0.1291, allocations: 151.9 kB / 363 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004922/0.1296, allocations: 0.588 MB / 363.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007147/0.1303, allocations: 0.8502 MB / 364.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.1321, allocations: 2.382 MB / 366.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1321, allocations: 0 / 366.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1321, allocations: 0 / 366.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.659e-05/0.1322, allocations: 3.938 kB / 366.8 MB, free: 3.363 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.004725/0.1369, allocations: 2.563 MB / 369.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.137, allocations: 8.031 kB / 369.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001699/0.1371, allocations: 139.5 kB / 369.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003105/0.1374, allocations: 222.2 kB / 369.7 MB, free: 376 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.145/0.2825, allocations: 1.518 MB / 371.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005617/0.2831, allocations: 177.5 kB / 371.4 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.2832, allocations: 82.48 kB / 371.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/0.2852, allocations: 1.125 MB / 372.6 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.2853, allocations: 0 / 372.6 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.108e-05/0.2854, allocations: 38.34 kB / 372.7 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.2854, allocations: 27.72 kB / 372.7 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.2869, allocations: 0.7384 MB / 373.4 MB, free: 23.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006573/0.2935, allocations: 4.651 MB / 378.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.295, allocations: 1.003 MB / 379.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008956/0.2959, allocations: 406.5 kB / 379.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.71e-05/0.2959, allocations: 6.906 kB / 379.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.296, allocations: 44.28 kB / 379.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.334e-06/0.296, allocations: 0 / 379.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002237/0.2982, allocations: 0.8873 MB / 380.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.3e-05/0.2983, allocations: 419.2 kB / 380.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/0.3018, allocations: 2.737 MB / 383.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.3019, allocations: 38.67 kB / 383.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005542/0.3024, allocations: 0.8748 MB / 384.5 MB, free: 17.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.802e-05/0.3026, allocations: 157.9 kB / 384.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.3027, allocations: 128.7 kB / 384.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.255e-05/0.3028, allocations: 326.3 kB / 385.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006215/0.3034, allocations: 280.6 kB / 385.4 MB, free: 16.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007345/0.3042, allocations: 0.5558 MB / 385.9 MB, free: 16.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.3053, allocations: 0.6598 MB / 386.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.3054, allocations: 1.188 kB / 386.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001838/0.3072, allocations: 0.8952 MB / 387.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3072, allocations: 8.219 kB / 387.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3073, allocations: 5.688 kB / 387.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.3073, allocations: 8.219 kB / 387.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006413/0.3079, allocations: 179.8 kB / 387.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.308, allocations: 12.81 kB / 387.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.309, allocations: 174.1 kB / 387.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.309, allocations: 29.77 kB / 387.9 MB, free: 15.37 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0006616/0.3097, allocations: 0.5621 MB / 388.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.3099, allocations: 183.3 kB / 388.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.3113, allocations: 0.7455 MB / 389.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3114, allocations: 5.812 kB / 389.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3114, allocations: 0 / 389.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.3114, allocations: 0 / 389.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.3145, allocations: 2.165 MB / 391.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3145, allocations: 1.562 kB / 391.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/0.315, allocations: 122.1 kB / 391.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.315, allocations: 6.688 kB / 391.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.721e-05/0.3151, allocations: 12.08 kB / 391.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.3151, allocations: 6.75 kB / 391.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3151, allocations: 1.281 kB / 391.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.317, allocations: 1.116 MB / 392.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004925/0.3175, allocations: 409 kB / 393.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/0.3177, allocations: 9.781 kB / 393.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009888/0.3187, allocations: 150 kB / 393.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002767/0.3189, allocations: 149.2 kB / 393.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.319, allocations: 24.83 kB / 393.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001919/0.3209, allocations: 1.945 MB / 395.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3209, allocations: 0 / 395.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007231/0.3217, allocations: 320.4 kB / 395.8 MB, free: 10.37 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.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 (44): * Single equations (assignments): 44 * 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.002877/0.3245, allocations: 2.025 MB / 397.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.3258, allocations: 0.628 MB / 398.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3258, allocations: 0 / 398.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006673/0.3265, allocations: 375.5 kB / 398.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.3277, allocations: 307 kB / 399.1 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0292/0.3569, allocations: 20.22 MB / 419.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.358, allocations: 1.433 MB / 420.8 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00082/0.3589, allocations: 294.8 kB / 421 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008508/0.3597, allocations: 0.6945 MB / 421.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3597, allocations: 0 / 421.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0546/0.4143, allocations: 36.3 MB / 458 MB, free: 11.29 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003318/0.4147, allocations: 254.1 kB / 458.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.797/3.212, allocations: 7.812 kB / 458.3 MB, free: 11.04 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)