Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001792/0.001792, allocations: 106.1 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002115/0.002115, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.614/1.614, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 51.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2679, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006454/0.2744, allocations: 5.496 MB / 405.7 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.277, allocations: 1.715 MB / 407.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003881/0.2774, allocations: 15.94 kB / 407.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009351/0.2783, allocations: 0.5252 MB / 408 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006562/0.279, allocations: 342.1 kB / 408.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007629/0.2798, allocations: 372.5 kB / 408.7 MB, free: 376 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.2808, allocations: 0.8964 MB / 409.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004654/0.2813, allocations: 336.8 kB / 409.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.2817, allocations: 362.8 kB / 410.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005035/0.2822, allocations: 442.4 kB / 410.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.2824, allocations: 80 kB / 410.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.2826, allocations: 124 kB / 410.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004005/0.283, allocations: 0.5844 MB / 411.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006082/0.2836, allocations: 0.7415 MB / 412.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00163/0.2852, allocations: 2.118 MB / 414.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2853, allocations: 0 / 414.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2853, allocations: 0 / 414.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.642e-05/0.2853, allocations: 0 / 414.3 MB, free: 10.68 MB / 334.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.003402/0.2887, allocations: 2.068 MB / 416.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.2888, allocations: 8.031 kB / 416.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.275e-05/0.2889, allocations: 86.7 kB / 416.5 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.2891, allocations: 194.5 kB / 416.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.2913, allocations: 1.497 MB / 418.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-05/0.2914, allocations: 74.69 kB / 418.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.292e-05/0.2914, allocations: 44 kB / 418.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009573/0.2924, allocations: 0.5815 MB / 418.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.2924, allocations: 0 / 418.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.507e-05/0.2925, allocations: 24 kB / 418.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.2925, allocations: 15.98 kB / 418.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000656/0.2932, allocations: 351.7 kB / 419.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00417/0.2973, allocations: 3.226 MB / 422.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.2984, allocations: 376.3 kB / 422.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004416/0.2989, allocations: 194.2 kB / 423 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.2989, allocations: 3.984 kB / 423 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.2989, allocations: 38.56 kB / 423.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.2989, allocations: 0 / 423.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001712/0.3006, allocations: 0.6949 MB / 423.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.3008, allocations: 213.6 kB / 424 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003077/0.3038, allocations: 2.884 MB / 426.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.3039, allocations: 33.7 kB / 426.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006032/0.3045, allocations: 0.7814 MB / 427.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.572e-05/0.3046, allocations: 71.02 kB / 427.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.3047, allocations: 73.92 kB / 427.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.424e-05/0.3048, allocations: 322 kB / 428.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.3051, allocations: 120.5 kB / 428.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003933/0.3055, allocations: 288.9 kB / 428.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000634/0.3061, allocations: 359.8 kB / 428.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3061, allocations: 4 kB / 428.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00104/0.3072, allocations: 0.5587 MB / 429.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3072, allocations: 4 kB / 429.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3072, allocations: 4 kB / 429.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/0.3075, allocations: 68.88 kB / 429.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.3078, allocations: 71.84 kB / 429.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.3093, allocations: 1.736 MB / 431.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.3097, allocations: 59.5 kB / 431.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.3097, allocations: 16 kB / 431.4 MB, free: 8.871 MB / 350.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.0005966/0.3103, allocations: 0.5835 MB / 432 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/0.3105, allocations: 161.9 kB / 432.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.3116, allocations: 0.5102 MB / 432.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.3116, allocations: 4 kB / 432.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.3116, allocations: 0 / 432.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3117, allocations: 4 kB / 432.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002726/0.3144, allocations: 1.678 MB / 434.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3144, allocations: 4 kB / 434.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.3147, allocations: 48.06 kB / 434.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001691/0.3149, allocations: 52.81 kB / 434.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.3149, allocations: 8 kB / 434.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/0.3164, allocations: 1.673 MB / 436.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3164, allocations: 0 / 436.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3178, allocations: 0.7085 MB / 436.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007534/0.3186, allocations: 375 kB / 437.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.3187, allocations: 8 kB / 437.2 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003975/0.3191, allocations: 47.95 kB / 437.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.649e-05/0.3192, allocations: 31.95 kB / 437.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.3192, allocations: 4 kB / 437.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002616/0.3219, allocations: 2.067 MB / 439.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3219, allocations: 0 / 439.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007579/0.3226, allocations: 203.5 kB / 439.6 MB, free: 420 kB / 350.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.002453/0.3251, allocations: 1.516 MB / 441.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.3261, allocations: 442.7 kB / 441.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3262, allocations: 0 / 441.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.3267, allocations: 267.2 kB / 441.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.3277, allocations: 220.4 kB / 442 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02306/0.3508, allocations: 17.47 MB / 459.4 MB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.3518, allocations: 1.355 MB / 460.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004599/0.3523, allocations: 245.7 kB / 461 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006383/0.353, allocations: 0.5696 MB / 461.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.353, allocations: 0 / 461.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.966/2.319, allocations: 33.23 MB / 494.8 MB, free: 9.094 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.65/23.97, allocations: 14.69 kB / 494.9 MB, free: 9.082 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)