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.001241/0.001241, allocations: 109.7 kB / 17.06 MB, free: 5.812 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.001208/0.001208, allocations: 200 kB / 18.01 MB, free: 4.941 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.384/1.384, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 43.94 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2692, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007058/0.2763, allocations: 5.491 MB / 405.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002764/0.2791, allocations: 1.718 MB / 407.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002746/0.2794, allocations: 15.94 kB / 407.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009946/0.2804, allocations: 0.5174 MB / 408 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005853/0.281, allocations: 346.2 kB / 408.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007879/0.2818, allocations: 370.5 kB / 408.7 MB, free: 328 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.2829, allocations: 0.9002 MB / 409.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000521/0.2834, allocations: 344.8 kB / 409.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004503/0.2838, allocations: 354.8 kB / 410.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005301/0.2844, allocations: 442.4 kB / 410.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.2845, allocations: 76 kB / 410.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.2847, allocations: 120 kB / 410.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000508/0.2853, allocations: 0.5844 MB / 411.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006716/0.2859, allocations: 0.7415 MB / 412.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002273/0.2882, allocations: 2.124 MB / 414.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2882, allocations: 0 / 414.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2882, allocations: 4 kB / 414.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.117e-05/0.2883, allocations: 0 / 414.3 MB, free: 10.62 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.003596/0.2919, allocations: 2.137 MB / 416.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.2919, allocations: 12.03 kB / 416.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.2921, allocations: 86.7 kB / 416.6 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002893/0.2923, allocations: 203.6 kB / 416.8 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002197/0.2946, allocations: 1.507 MB / 418.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.859e-05/0.2947, allocations: 66.64 kB / 418.3 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.282e-05/0.2947, allocations: 48 kB / 418.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.2959, allocations: 0.5854 MB / 419 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2959, allocations: 3.938 kB / 419 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.158e-05/0.296, allocations: 20 kB / 419 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.296, allocations: 12 kB / 419 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007474/0.2967, allocations: 347.8 kB / 419.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004643/0.3014, allocations: 3.239 MB / 422.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.3026, allocations: 379.1 kB / 422.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004765/0.3031, allocations: 184.7 kB / 423.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.3031, allocations: 7.984 kB / 423.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.3032, allocations: 42.5 kB / 423.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.324e-06/0.3032, allocations: 0 / 423.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001968/0.3052, allocations: 0.7051 MB / 423.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.3053, allocations: 217.6 kB / 424.1 MB, free: 492 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003816/0.3091, allocations: 2.888 MB / 427 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.152e-05/0.3092, allocations: 29.7 kB / 427 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008306/0.31, allocations: 0.7899 MB / 427.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.037e-05/0.3101, allocations: 79.31 kB / 427.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.3103, allocations: 66.03 kB / 427.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3104, allocations: 322 kB / 428.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.3108, allocations: 120.6 kB / 428.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00048/0.3112, allocations: 288.9 kB / 428.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007347/0.312, allocations: 365.7 kB / 429 MB, free: 11.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.312, allocations: 4 kB / 429 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001255/0.3133, allocations: 0.5635 MB / 429.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.3133, allocations: 11.98 kB / 429.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3133, allocations: 7.938 kB / 429.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.3136, allocations: 65.08 kB / 429.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.3139, allocations: 71.89 kB / 429.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.3158, allocations: 1.724 MB / 431.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.3163, allocations: 63.64 kB / 431.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.3164, allocations: 16 kB / 431.5 MB, free: 8.695 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.0007464/0.3171, allocations: 0.5718 MB / 432.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.3174, allocations: 170.9 kB / 432.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.3186, allocations: 0.5142 MB / 432.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.3186, allocations: 0 / 432.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3186, allocations: 4 kB / 432.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.3186, allocations: 4.109 kB / 432.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002888/0.3215, allocations: 1.693 MB / 434.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3215, allocations: 0 / 434.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.3218, allocations: 43.97 kB / 434.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001674/0.3219, allocations: 52.86 kB / 434.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.322, allocations: 3.984 kB / 434.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/0.3237, allocations: 1.669 MB / 436.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3237, allocations: 0 / 436.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.3252, allocations: 0.715 MB / 437 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006873/0.3259, allocations: 395.9 kB / 437.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.3261, allocations: 4 kB / 437.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.3265, allocations: 43.95 kB / 437.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.3266, allocations: 39.84 kB / 437.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.3266, allocations: 11.94 kB / 437.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002894/0.3295, allocations: 2.071 MB / 439.5 MB, free: 404 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3295, allocations: 0 / 439.5 MB, free: 404 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007623/0.3303, allocations: 203.7 kB / 439.7 MB, free: 200 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.003179/0.3335, allocations: 1.527 MB / 441.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.3346, allocations: 434.4 kB / 441.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3346, allocations: 0.8125 kB / 441.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005911/0.3352, allocations: 274.5 kB / 441.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.3363, allocations: 213.5 kB / 442.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03937/0.3757, allocations: 17.51 MB / 459.7 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001853/0.3776, allocations: 1.355 MB / 461 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008855/0.3785, allocations: 245.7 kB / 461.3 MB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.3797, allocations: 0.5735 MB / 461.8 MB, free: 9.801 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3797, allocations: 0 / 461.8 MB, free: 9.801 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08327/0.463, allocations: 32.69 MB / 494.5 MB, free: 9.375 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/14.83, allocations: 15.94 kB / 494.5 MB, free: 9.359 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)