Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009841/0.0009841, allocations: 99.69 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.001306/0.001306, allocations: 193.3 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.398/1.398, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002717, allocations: 12 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007296/0.1347, allocations: 5.29 MB / 363.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004314/0.1391, allocations: 2.137 MB / 365.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006821/0.1398, allocations: 11.94 kB / 365.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.1413, allocations: 0.5761 MB / 366.3 MB, free: 5.723 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.001009/0.1423, allocations: 378.2 kB / 366.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009155/0.1432, allocations: 274.7 kB / 367 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.1446, allocations: 1.114 MB / 368.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006102/0.1452, allocations: 359.3 kB / 368.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005082/0.1457, allocations: 382.5 kB / 368.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005766/0.1463, allocations: 478.1 kB / 369.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.53e-05/0.1464, allocations: 44 kB / 369.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.1467, allocations: 95.97 kB / 369.4 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005024/0.1472, allocations: 0.5843 MB / 370 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002832/0.1475, allocations: 340.6 kB / 370.3 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2571/0.4046, allocations: 2.132 MB / 372.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.4046, allocations: 0.9062 kB / 372.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.4046, allocations: 0.625 kB / 372.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001021/0.4047, allocations: 0 / 372.5 MB, free: 11.63 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005469/0.4102, allocations: 2.074 MB / 374.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.261e-05/0.4103, allocations: 9.688 kB / 374.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002986/0.4106, allocations: 110.5 kB / 374.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005214/0.4111, allocations: 210.4 kB / 374.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003644/0.4148, allocations: 1.575 MB / 376.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002962/0.4151, allocations: 138.7 kB / 376.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.4152, allocations: 64.33 kB / 376.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.417, allocations: 0.8297 MB / 377.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.417, allocations: 3.188 kB / 377.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.139e-05/0.4171, allocations: 27.59 kB / 377.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.4171, allocations: 14.88 kB / 377.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.4183, allocations: 0.5581 MB / 378.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007953/0.4263, allocations: 4.055 MB / 382.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.4278, allocations: 0.5639 MB / 382.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000859/0.4287, allocations: 379.2 kB / 383 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.4288, allocations: 3.734 kB / 383 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.4288, allocations: 39.34 kB / 383.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 3.366e-06/0.4288, allocations: 0 / 383.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.003222/0.4321, allocations: 0.9988 MB / 384.1 MB, free: 8.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.4322, allocations: 267.6 kB / 384.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005965/0.4382, allocations: 3.158 MB / 387.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.4383, allocations: 36.89 kB / 387.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007387/0.4391, allocations: 0.8641 MB / 388.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.4392, allocations: 113.5 kB / 388.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/0.4392, allocations: 11.16 kB / 388.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.251e-05/0.4393, allocations: 323.7 kB / 388.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/0.4398, allocations: 220.2 kB / 389.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/0.4404, allocations: 405.1 kB / 389.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00056/0.441, allocations: 262 kB / 389.7 MB, free: 5.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.441, allocations: 2.219 kB / 389.7 MB, free: 5.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001967/0.443, allocations: 0.8533 MB / 390.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.443, allocations: 6.5 kB / 390.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.4431, allocations: 5.156 kB / 390.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003198/0.4434, allocations: 66.44 kB / 390.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.4439, allocations: 125.3 kB / 390.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.4453, allocations: 1.644 MB / 392.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007414/0.4461, allocations: 80.25 kB / 392.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.4461, allocations: 19.84 kB / 392.5 MB, free: 3.734 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.001224/0.4474, allocations: 0.6661 MB / 393.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/0.4476, allocations: 183.8 kB / 393.3 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003072/0.4479, allocations: 225.7 kB / 393.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.4479, allocations: 4.125 kB / 393.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.448, allocations: 2.188 kB / 393.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.448, allocations: 2.578 kB / 393.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/0.4512, allocations: 2.185 MB / 395.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.4512, allocations: 1.031 kB / 395.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004046/0.4516, allocations: 90.62 kB / 395.9 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001933/0.4518, allocations: 61.22 kB / 395.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.271e-05/0.4519, allocations: 12.14 kB / 395.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.453, allocations: 1.595 MB / 397.5 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.453, allocations: 2.219 kB / 397.5 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.4548, allocations: 1.028 MB / 398.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006553/0.4555, allocations: 448 kB / 399 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.4557, allocations: 10.88 kB / 399 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004985/0.4562, allocations: 73.97 kB / 399.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.4563, allocations: 38.16 kB / 399.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.4563, allocations: 15.22 kB / 399.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002991/0.4593, allocations: 2.25 MB / 401.4 MB, free: 14.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4593, allocations: 0 / 401.4 MB, free: 14.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009476/0.4603, allocations: 265 kB / 401.6 MB, free: 14.02 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,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 (29): * Single equations (assignments): 28 * 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.003084/0.4634, allocations: 1.928 MB / 403.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.4648, allocations: 0.6265 MB / 404.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.4648, allocations: 4 kB / 404.2 MB, free: 11.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006759/0.4655, allocations: 377.5 kB / 404.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.4668, allocations: 283.2 kB / 404.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0329/0.4997, allocations: 14.57 MB / 419.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.5011, allocations: 1.497 MB / 420.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.5021, allocations: 301.6 kB / 421.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009443/0.5031, allocations: 0.6438 MB / 421.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of SimCode: time 2.936e-06/0.5031, allocations: 0 / 421.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06669/0.5698, allocations: 35.12 MB / 457 MB, free: 6.355 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.57, allocations: 255.3 kB / 457.2 MB, free: 6.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.227/3.797, allocations: 0 / 457.2 MB, free: 6.023 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat does not exist to compare? outputFormat=mat