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.0008763/0.0008762, allocations: 98.47 kB / 17.01 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 195.2 kB / 17.91 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.3 MB / 246 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002749, allocations: 4 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1125, allocations: 51.5 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005568/0.1182, allocations: 5.067 MB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004143/0.1223, allocations: 2.546 MB / 365.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006328/0.123, allocations: 23.88 kB / 365.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.1246, allocations: 0.6966 MB / 366.6 MB, free: 5.633 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.001263/0.1259, allocations: 485.6 kB / 367.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.1271, allocations: 383.1 kB / 367.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00181/0.1289, allocations: 1.399 MB / 368.9 MB, free: 3.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006766/0.1296, allocations: 443.2 kB / 369.3 MB, free: 2.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000758/0.1303, allocations: 0.4902 MB / 369.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007744/0.1311, allocations: 0.5991 MB / 370.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.1313, allocations: 63.94 kB / 370.5 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003917/0.1316, allocations: 128 kB / 370.6 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005044/0.1322, allocations: 0.5569 MB / 371.2 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003235/0.1325, allocations: 336.6 kB / 371.5 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1896/0.3221, allocations: 1.955 MB / 373.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3222, allocations: 0.5312 kB / 373.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.3222, allocations: 0.5625 kB / 373.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.53e-05/0.3223, allocations: 0.5 kB / 373.4 MB, free: 11.01 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.00535/0.3276, allocations: 2.339 MB / 375.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.3277, allocations: 10.19 kB / 375.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002968/0.328, allocations: 138.3 kB / 375.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004905/0.3285, allocations: 222.1 kB / 376.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002594/0.3311, allocations: 1.448 MB / 377.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005291/0.3317, allocations: 195.5 kB / 377.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.3318, allocations: 83.81 kB / 377.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002246/0.3341, allocations: 1.125 MB / 379 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.3341, allocations: 4 kB / 379 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.372e-05/0.3342, allocations: 39.34 kB / 379 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.3342, allocations: 22.59 kB / 379.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.3358, allocations: 0.7444 MB / 379.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008154/0.3439, allocations: 4.709 MB / 384.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.3457, allocations: 0.9979 MB / 385.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00097/0.3467, allocations: 415 kB / 385.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-05/0.3467, allocations: 7.406 kB / 385.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.3468, allocations: 51.34 kB / 386 MB, free: 6.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.765e-06/0.3468, allocations: 1.188 kB / 386 MB, free: 6.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002145/0.3489, allocations: 0.902 MB / 386.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.3491, allocations: 427.4 kB / 387.3 MB, free: 6.176 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004361/0.3535, allocations: 2.755 MB / 390 MB, free: 5.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.243e-05/0.3535, allocations: 39.08 kB / 390.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006634/0.3542, allocations: 0.8891 MB / 391 MB, free: 5.117 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.3543, allocations: 156.7 kB / 391.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.3544, allocations: 9.5 kB / 391.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.165e-05/0.3545, allocations: 332.1 kB / 391.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006297/0.3551, allocations: 283.5 kB / 391.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007381/0.3558, allocations: 0.5655 MB / 392.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006061/0.3565, allocations: 307.2 kB / 392.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.3565, allocations: 2.75 kB / 392.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00185/0.3583, allocations: 0.9096 MB / 393.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.3584, allocations: 9.938 kB / 393.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3584, allocations: 5.406 kB / 393.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.3584, allocations: 15.91 kB / 393.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.359, allocations: 173.7 kB / 393.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.862e-05/0.3591, allocations: 20.06 kB / 393.7 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.3602, allocations: 215.6 kB / 393.9 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.175e-05/0.3603, allocations: 27.03 kB / 394 MB, free: 3.312 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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009482/0.3613, allocations: 0.551 MB / 394.5 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002431/0.3615, allocations: 180.5 kB / 394.7 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.363, allocations: 0.7627 MB / 395.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.363, allocations: 3.719 kB / 395.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.363, allocations: 0 / 395.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3631, allocations: 7.938 kB / 395.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003125/0.3662, allocations: 2.201 MB / 397.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.3662, allocations: 6.188 kB / 397.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.3667, allocations: 129.9 kB / 397.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.315e-06/0.3667, allocations: 3.344 kB / 397.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.3668, allocations: 11.84 kB / 397.8 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.3668, allocations: 3.344 kB / 397.8 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3668, allocations: 0 / 397.8 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.3686, allocations: 1.131 MB / 399 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005814/0.3692, allocations: 417.4 kB / 399.4 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.3694, allocations: 18.36 kB / 399.4 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.3705, allocations: 199 kB / 399.6 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003045/0.3708, allocations: 154.1 kB / 399.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/0.3709, allocations: 22.08 kB / 399.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003279/0.3741, allocations: 1.954 MB / 401.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3742, allocations: 0 / 401.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00124/0.3754, allocations: 319.1 kB / 402 MB, free: 14.06 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003544/0.379, allocations: 2.054 MB / 404.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.3805, allocations: 0.634 MB / 404.7 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.3805, allocations: 0 / 404.7 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007521/0.3813, allocations: 387 kB / 405.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.3832, allocations: 311.7 kB / 405.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02414/0.4074, allocations: 13.28 MB / 418.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.4085, allocations: 1.433 MB / 420.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009705/0.4095, allocations: 295.1 kB / 420.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008452/0.4104, allocations: 0.7021 MB / 421.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of SimCode: time 2.274e-06/0.4104, allocations: 0 / 421.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05698/0.4674, allocations: 35.09 MB / 456.2 MB, free: 7.668 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.4676, allocations: 238.3 kB / 456.4 MB, free: 7.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.992/3.459, allocations: 4 kB / 456.4 MB, free: 7.43 MB / 366.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat does not exist to compare? outputFormat=mat