Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008267/0.0008272, allocations: 94.84 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009816/0.0009817, allocations: 195.4 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002213/0.0002213, allocations: 4 kB / 306.8 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1022, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.003977/0.1062, allocations: 3.458 MB / 361.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.109, allocations: 1.918 MB / 363.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.1093, allocations: 12 kB / 363.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.1105, allocations: 0.545 MB / 364.2 MB, free: 8.008 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.000557/0.1111, allocations: 334.6 kB / 364.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.1116, allocations: 215.4 kB / 364.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008125/0.1124, allocations: 0.8493 MB / 365.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003733/0.1128, allocations: 268 kB / 365.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/0.1131, allocations: 302.9 kB / 366.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004119/0.1135, allocations: 398.5 kB / 366.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.696e-05/0.1136, allocations: 43.88 kB / 366.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.1138, allocations: 83.97 kB / 366.7 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003509/0.1141, allocations: 430.8 kB / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.1143, allocations: 248.9 kB / 367.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.1153, allocations: 1.391 MB / 368.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1153, allocations: 0 / 368.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1153, allocations: 0 / 368.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.1154, allocations: 0 / 368.8 MB, free: 3.473 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002179/0.1175, allocations: 1.612 MB / 370.4 MB, free: 1.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1176, allocations: 8.031 kB / 370.4 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.1177, allocations: 94.52 kB / 370.5 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.1179, allocations: 158 kB / 370.6 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.1194, allocations: 1.111 MB / 371.7 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002906/0.1197, allocations: 144.4 kB / 371.9 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-05/0.1197, allocations: 55.92 kB / 371.9 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1732/0.293, allocations: 0.6584 MB / 372.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.293, allocations: 3.156 kB / 372.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.415e-05/0.2931, allocations: 25.05 kB / 372.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.2931, allocations: 13.91 kB / 372.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008709/0.294, allocations: 448.6 kB / 373.1 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004719/0.2987, allocations: 2.929 MB / 376 MB, free: 17.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.2998, allocations: 482.4 kB / 376.5 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006762/0.3005, allocations: 340.5 kB / 376.8 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.3005, allocations: 2.75 kB / 376.8 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.3005, allocations: 39.77 kB / 376.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.495e-06/0.3006, allocations: 0 / 376.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002206/0.3028, allocations: 0.8333 MB / 377.7 MB, free: 17.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/0.3029, allocations: 265.7 kB / 377.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/0.3062, allocations: 2.243 MB / 380.2 MB, free: 16.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.782e-05/0.3063, allocations: 33.56 kB / 380.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005555/0.3068, allocations: 0.6401 MB / 380.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.942e-05/0.3069, allocations: 114.1 kB / 381 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.307, allocations: 5.875 kB / 381 MB, free: 15.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.414e-05/0.307, allocations: 321.8 kB / 381.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.3075, allocations: 178.8 kB / 381.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/0.308, allocations: 318.7 kB / 381.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004178/0.3084, allocations: 208.3 kB / 382 MB, free: 14.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3084, allocations: 1.656 kB / 382 MB, free: 14.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001527/0.31, allocations: 0.6328 MB / 382.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.31, allocations: 8.875 kB / 382.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.31, allocations: 6.469 kB / 382.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003827/0.3104, allocations: 66 kB / 382.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.3109, allocations: 103 kB / 382.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.3126, allocations: 1.621 MB / 384.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006525/0.3132, allocations: 69.11 kB / 384.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.3133, allocations: 16.55 kB / 384.5 MB, free: 13 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009495/0.3142, allocations: 484.5 kB / 385 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.3144, allocations: 134.6 kB / 385.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002314/0.3147, allocations: 160.7 kB / 385.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3147, allocations: 7.094 kB / 385.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.3147, allocations: 5.953 kB / 385.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3147, allocations: 4.797 kB / 385.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.3178, allocations: 1.699 MB / 387 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3178, allocations: 8.844 kB / 387 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003944/0.3182, allocations: 76.66 kB / 387.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.3184, allocations: 58.95 kB / 387.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.3184, allocations: 11.38 kB / 387.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.3198, allocations: 1.575 MB / 388.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3198, allocations: 5.344 kB / 388.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.3216, allocations: 0.8669 MB / 389.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000505/0.3221, allocations: 335.4 kB / 389.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.3222, allocations: 11.19 kB / 389.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00045/0.3227, allocations: 60.47 kB / 390 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/0.3228, allocations: 37.77 kB / 390 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.3228, allocations: 12.53 kB / 390 MB, free: 9.695 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002187/0.325, allocations: 1.607 MB / 391.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.325, allocations: 0 / 391.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008637/0.3259, allocations: 200.6 kB / 391.8 MB, free: 9.023 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002587/0.3285, allocations: 1.768 MB / 393.6 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.3296, allocations: 0.5285 MB / 394.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.3296, allocations: 5.531 kB / 394.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000566/0.3302, allocations: 334.5 kB / 394.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009001/0.3311, allocations: 200.3 kB / 394.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01521/0.3463, allocations: 9.946 MB / 404.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008159/0.3472, allocations: 1.257 MB / 405.8 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005534/0.3478, allocations: 211.8 kB / 406 MB, free: 13.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005766/0.3484, allocations: 483.3 kB / 406.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3484, allocations: 0 / 406.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04853/0.3969, allocations: 25.55 MB / 432.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.3972, allocations: 252.2 kB / 432.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.676/3.073, allocations: 0 / 432.3 MB, free: 3.09 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat does not exist to compare? outputFormat=mat