Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 64.36 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09048/0.09259, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006227/0.09885, allocations: 5.842 MB / 363.4 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003744/0.1026, allocations: 2.739 MB / 366.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005484/0.1032, allocations: 23.94 kB / 366.2 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.1046, allocations: 0.7698 MB / 367 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00101/0.1056, allocations: 0.5555 MB / 367.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009895/0.1066, allocations: 0.5141 MB / 368 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001467/0.1081, allocations: 1.586 MB / 369.6 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006948/0.1088, allocations: 0.6001 MB / 370.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006092/0.1094, allocations: 0.6151 MB / 370.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.169/0.2784, allocations: 0.7362 MB / 371.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005642/0.279, allocations: 133.7 kB / 371.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006511/0.2797, allocations: 203 kB / 371.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006039/0.2803, allocations: 0.6404 MB / 372.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008361/0.2811, allocations: 0.9205 MB / 373.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002866/0.284, allocations: 2.46 MB / 375.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.284, allocations: 0 / 375.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.284, allocations: 0 / 375.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.415e-05/0.2841, allocations: 1.375 kB / 375.9 MB, free: 10.52 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.005056/0.2891, allocations: 2.583 MB / 378.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2892, allocations: 12.91 kB / 378.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.2894, allocations: 139.4 kB / 378.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003507/0.2897, allocations: 226.9 kB / 378.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.2919, allocations: 1.517 MB / 380.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00048/0.2924, allocations: 177.4 kB / 380.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.2925, allocations: 87.33 kB / 380.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.2943, allocations: 1.128 MB / 381.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.2944, allocations: 3.141 kB / 381.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.497e-05/0.2945, allocations: 38.97 kB / 381.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.2945, allocations: 23.38 kB / 381.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.2959, allocations: 0.7404 MB / 382.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006724/0.3026, allocations: 4.669 MB / 387.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.3041, allocations: 0.9691 MB / 388.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008453/0.3049, allocations: 410.4 kB / 388.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.456e-05/0.305, allocations: 16.47 kB / 388.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.305, allocations: 43.5 kB / 388.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.735e-06/0.305, allocations: 0 / 388.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002366/0.3074, allocations: 0.8811 MB / 389.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.3075, allocations: 423 kB / 390 MB, free: 3.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/0.3119, allocations: 2.771 MB / 392.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.465e-05/0.312, allocations: 37.83 kB / 392.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005949/0.3126, allocations: 0.8818 MB / 393.7 MB, free: 1.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.3127, allocations: 161.5 kB / 393.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.313, allocations: 123.3 kB / 393.9 MB, free: 1.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.228e-05/0.313, allocations: 328.7 kB / 394.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006575/0.3137, allocations: 282.4 kB / 394.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000882/0.3146, allocations: 0.5568 MB / 395.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.3159, allocations: 0.6541 MB / 395.7 MB, free: 152 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.3159, allocations: 2.719 kB / 395.7 MB, free: 152 kB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002253/0.3182, allocations: 0.899 MB / 396.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3182, allocations: 11.2 kB / 396.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3182, allocations: 7.75 kB / 396.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.3183, allocations: 7.656 kB / 396.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006008/0.3189, allocations: 166.6 kB / 396.8 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.3189, allocations: 25.67 kB / 396.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.3202, allocations: 164.4 kB / 397 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.34e-05/0.3202, allocations: 36.31 kB / 397.1 MB, free: 15.59 MB / 318.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.001415/0.3216, allocations: 0.5558 MB / 397.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003908/0.322, allocations: 179.6 kB / 397.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/0.3237, allocations: 0.7371 MB / 398.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.3238, allocations: 4.406 kB / 398.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3238, allocations: 3.938 kB / 398.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3238, allocations: 6.109 kB / 398.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00422/0.328, allocations: 2.184 MB / 400.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.328, allocations: 3.125 kB / 400.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005515/0.3286, allocations: 128.5 kB / 400.8 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.3286, allocations: 2.656 kB / 400.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.3287, allocations: 11.16 kB / 400.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.3287, allocations: 4.656 kB / 400.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3287, allocations: 0 / 400.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002702/0.3314, allocations: 1.119 MB / 402 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009549/0.3324, allocations: 407.7 kB / 402.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.3326, allocations: 20 kB / 402.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.3337, allocations: 147.8 kB / 402.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.3341, allocations: 155.7 kB / 402.7 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.464e-05/0.3341, allocations: 20 kB / 402.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003632/0.3378, allocations: 1.967 MB / 404.7 MB, free: 9.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3378, allocations: 0 / 404.7 MB, free: 9.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0014/0.3392, allocations: 311.2 kB / 405 MB, free: 9.625 MB / 318.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.003731/0.3429, allocations: 2.029 MB / 407 MB, free: 7.742 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.3446, allocations: 0.6832 MB / 407.7 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.3446, allocations: 0.5 kB / 407.7 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.3454, allocations: 375.1 kB / 408.1 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.347, allocations: 318.1 kB / 408.4 MB, free: 6.418 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/0.3749, allocations: 19.87 MB / 428.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.3763, allocations: 1.437 MB / 429.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001167/0.3774, allocations: 299.1 kB / 430 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.3785, allocations: 0.7062 MB / 430.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3785, allocations: 4 kB / 430.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07943/0.4579, allocations: 38.46 MB / 469.2 MB, free: 8.676 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.193/9.651, allocations: 14.17 kB / 469.2 MB, free: 8.664 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)