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.001513/0.001513, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002035/0.002035, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 64.52 kB / 306.4 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1076, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008563/0.1162, allocations: 5.538 MB / 362.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003958/0.1202, allocations: 1.847 MB / 364.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008382/0.1211, allocations: 15.94 kB / 364.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001606/0.1228, allocations: 0.4983 MB / 364.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.1241, allocations: 338.5 kB / 365.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.1252, allocations: 342.6 kB / 365.4 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.1267, allocations: 0.8378 MB / 366.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007549/0.1274, allocations: 295.7 kB / 366.6 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007902/0.1282, allocations: 314.7 kB / 366.9 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009211/0.1292, allocations: 418.4 kB / 367.3 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002248/0.1294, allocations: 44 kB / 367.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004301/0.1298, allocations: 83.98 kB / 367.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005892/0.1304, allocations: 0.5609 MB / 368 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.1316, allocations: 0.6908 MB / 368.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002192/0.1338, allocations: 2.048 MB / 370.7 MB, free: 304 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1338, allocations: 0 / 370.7 MB, free: 304 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1338, allocations: 0 / 370.7 MB, free: 304 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.125e-05/0.1339, allocations: 0 / 370.7 MB, free: 304 kB / 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.1757/0.3096, allocations: 2.079 MB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3097, allocations: 9.625 kB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.3098, allocations: 88.73 kB / 372.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.31, allocations: 188.6 kB / 373.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.3121, allocations: 1.488 MB / 374.6 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.3123, allocations: 91.69 kB / 374.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.249e-05/0.3124, allocations: 47.28 kB / 374.7 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.3137, allocations: 0.5895 MB / 375.3 MB, free: 18.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.3138, allocations: 2.719 kB / 375.3 MB, free: 18.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.3138, allocations: 21.5 kB / 375.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.3138, allocations: 19.2 kB / 375.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007653/0.3146, allocations: 348.3 kB / 375.7 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004578/0.3192, allocations: 3.246 MB / 378.9 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.3203, allocations: 381.2 kB / 379.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000476/0.3208, allocations: 191 kB / 379.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.3209, allocations: 8.969 kB / 379.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.3209, allocations: 38.8 kB / 379.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.3209, allocations: 0 / 379.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001938/0.3228, allocations: 0.6955 MB / 380.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.458e-05/0.3229, allocations: 213.9 kB / 380.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004166/0.3271, allocations: 2.904 MB / 383.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.3271, allocations: 32.3 kB / 383.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006689/0.3278, allocations: 0.7829 MB / 384.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.103e-05/0.3279, allocations: 74.23 kB / 384.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.328, allocations: 66.39 kB / 384.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.965e-05/0.3281, allocations: 321.7 kB / 384.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003395/0.3285, allocations: 121.6 kB / 384.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004433/0.3289, allocations: 296 kB / 385 MB, free: 13.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000691/0.3296, allocations: 365.9 kB / 385.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3296, allocations: 1.719 kB / 385.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001294/0.3309, allocations: 0.5493 MB / 385.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.331, allocations: 14.03 kB / 385.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.331, allocations: 5.031 kB / 385.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003145/0.3313, allocations: 63.61 kB / 386 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003198/0.3316, allocations: 75.12 kB / 386.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.333, allocations: 1.552 MB / 387.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004438/0.3335, allocations: 68.34 kB / 387.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.3335, allocations: 20.84 kB / 387.7 MB, free: 11.04 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006509/0.3342, allocations: 0.5746 MB / 388.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.3344, allocations: 161.9 kB / 388.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.3355, allocations: 0.517 MB / 389 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.3355, allocations: 4.141 kB / 389 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.3356, allocations: 2.547 kB / 389 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3356, allocations: 0.7969 kB / 389 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/0.3382, allocations: 1.695 MB / 390.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3382, allocations: 1.188 kB / 390.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.3385, allocations: 47.81 kB / 390.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001459/0.3386, allocations: 53.38 kB / 390.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.3386, allocations: 9.094 kB / 390.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009676/0.3396, allocations: 1.5 MB / 392.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3396, allocations: 0 / 392.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3409, allocations: 0.7118 MB / 393 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000454/0.3414, allocations: 387.8 kB / 393.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.3415, allocations: 3.312 kB / 393.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.3419, allocations: 42.36 kB / 393.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.672e-05/0.342, allocations: 36.92 kB / 393.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.342, allocations: 7.688 kB / 393.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002341/0.3444, allocations: 2.079 MB / 395.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3444, allocations: 0 / 395.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007606/0.3451, allocations: 199.3 kB / 395.7 MB, free: 6.344 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00211/0.3473, allocations: 1.518 MB / 397.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009004/0.3482, allocations: 437.3 kB / 397.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3482, allocations: 0.8125 kB / 397.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004603/0.3487, allocations: 268.9 kB / 397.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.3497, allocations: 216.1 kB / 398.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03266/0.3824, allocations: 20.4 MB / 418.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.3838, allocations: 1.363 MB / 419.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000673/0.3845, allocations: 241.7 kB / 420.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007194/0.3852, allocations: 0.5735 MB / 420.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3852, allocations: 0 / 420.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05313/0.4384, allocations: 31.15 MB / 451.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.4386, allocations: 267.8 kB / 452.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.844, allocations: 0 / 452.1 MB, free: 13.8 MB / 366.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/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)