Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009098/0.0009098, allocations: 98.67 kB / 17.01 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.001251/0.001251, allocations: 192.7 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.394/1.394, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.000268, allocations: 8 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1193, allocations: 51.48 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005409/0.1248, allocations: 4.826 MB / 363.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.1276, allocations: 1.747 MB / 364.9 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003035/0.1279, allocations: 19.94 kB / 364.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008775/0.1288, allocations: 486.3 kB / 365.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006043/0.1294, allocations: 334.5 kB / 365.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006958/0.1301, allocations: 255 kB / 365.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000839/0.131, allocations: 0.7754 MB / 366.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004201/0.1314, allocations: 247.9 kB / 367 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003128/0.1317, allocations: 274.9 kB / 367.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.1321, allocations: 358.5 kB / 367.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.929e-05/0.1322, allocations: 28 kB / 367.6 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.1324, allocations: 79.97 kB / 367.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004332/0.1328, allocations: 0.5415 MB / 368.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002261/0.133, allocations: 288.8 kB / 368.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.1344, allocations: 1.718 MB / 370.2 MB, free: 1.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1344, allocations: 4 kB / 370.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1345, allocations: 0 / 370.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.1345, allocations: 0 / 370.2 MB, free: 1.797 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.2546/0.3891, allocations: 1.819 MB / 372 MB, free: 18.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.885e-05/0.3892, allocations: 8.75 kB / 372.1 MB, free: 18.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003996/0.3896, allocations: 90.45 kB / 372.1 MB, free: 18.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006139/0.3902, allocations: 188.3 kB / 372.3 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002903/0.3931, allocations: 1.405 MB / 373.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.3934, allocations: 102.2 kB / 373.8 MB, free: 17.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.817e-05/0.3935, allocations: 49.84 kB / 373.9 MB, free: 17.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.3947, allocations: 0.594 MB / 374.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.3947, allocations: 0.875 kB / 374.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.023e-05/0.3948, allocations: 21.16 kB / 374.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.3948, allocations: 11.44 kB / 374.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008503/0.3957, allocations: 355.9 kB / 374.9 MB, free: 17.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.4014, allocations: 3.292 MB / 378.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.4027, allocations: 426.5 kB / 378.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005411/0.4033, allocations: 197.2 kB / 378.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.4034, allocations: 3.312 kB / 378.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.4034, allocations: 41.88 kB / 378.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.005e-06/0.4034, allocations: 0 / 378.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00215/0.4056, allocations: 0.7509 MB / 379.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.523e-05/0.4057, allocations: 208.7 kB / 379.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005101/0.4108, allocations: 2.904 MB / 382.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.4108, allocations: 35.92 kB / 382.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007437/0.4116, allocations: 0.79 MB / 383.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.578e-05/0.4117, allocations: 76.08 kB / 383.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.4117, allocations: 5.062 kB / 383.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.981e-05/0.4118, allocations: 321.2 kB / 383.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.4121, allocations: 130.6 kB / 384 MB, free: 13.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004436/0.4126, allocations: 299 kB / 384.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003626/0.4129, allocations: 164.6 kB / 384.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.413, allocations: 4 kB / 384.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001535/0.4145, allocations: 0.6297 MB / 385.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.4145, allocations: 6.094 kB / 385.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.4146, allocations: 5.141 kB / 385.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003609/0.4149, allocations: 61.31 kB / 385.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/0.4153, allocations: 78.5 kB / 385.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.4169, allocations: 1.575 MB / 386.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005649/0.4174, allocations: 74.16 kB / 386.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.4175, allocations: 15.75 kB / 386.9 MB, free: 11 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0008875/0.4184, allocations: 0.5793 MB / 387.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.4186, allocations: 161.2 kB / 387.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.4199, allocations: 0.5439 MB / 388.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.4199, allocations: 6.609 kB / 388.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.4199, allocations: 6.703 kB / 388.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.4199, allocations: 1.5 kB / 388.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.4231, allocations: 1.721 MB / 389.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4231, allocations: 0 / 389.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/0.4234, allocations: 58.77 kB / 390 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002125/0.4236, allocations: 50.2 kB / 390 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.4236, allocations: 5.938 kB / 390 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.4248, allocations: 1.523 MB / 391.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4248, allocations: 1.219 kB / 391.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.4264, allocations: 0.7595 MB / 392.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005426/0.4269, allocations: 389 kB / 392.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.4271, allocations: 7.219 kB / 392.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.4275, allocations: 58.33 kB / 392.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.536e-05/0.4276, allocations: 34.36 kB / 392.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.4276, allocations: 4.188 kB / 392.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002926/0.4306, allocations: 2.073 MB / 394.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4306, allocations: 1.156 kB / 394.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008679/0.4314, allocations: 199.6 kB / 395.1 MB, free: 6.426 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002354/0.4338, allocations: 1.559 MB / 396.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.4349, allocations: 463.6 kB / 397.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4349, allocations: 3.938 kB / 397.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004478/0.4353, allocations: 294.5 kB / 397.4 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009994/0.4363, allocations: 204.9 kB / 397.6 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02657/0.4629, allocations: 12.65 MB / 410.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.4641, allocations: 1.356 MB / 411.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006553/0.4648, allocations: 241.7 kB / 411.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008046/0.4656, allocations: 0.5774 MB / 412.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4656, allocations: 0 / 412.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07086/0.5364, allocations: 29.84 MB / 442.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003648/0.5369, allocations: 250 kB / 442.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.774/3.311, allocations: 0 / 442.5 MB, free: 7.707 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat does not exist to compare? outputFormat=mat