Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",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.001301/0.001301, allocations: 114.3 kB / 16.63 MB, free: 6.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.002637/0.002637, allocations: 190 kB / 17.55 MB, free: 5.934 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.364/1.364, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 48.7 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09269/0.09376, allocations: 49.44 MB / 349.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005445/0.09925, allocations: 4.003 MB / 353.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002791/0.1021, allocations: 1.878 MB / 355.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003868/0.1025, allocations: 11.94 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.1038, allocations: 0.5529 MB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006622/0.1045, allocations: 318.7 kB / 356.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006229/0.1051, allocations: 258.7 kB / 356.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.1062, allocations: 0.9819 MB / 357.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004727/0.1067, allocations: 352.5 kB / 358 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000466/0.1071, allocations: 386.7 kB / 358.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006386/0.1078, allocations: 0.4905 MB / 358.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.108, allocations: 76 kB / 359 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002728/0.1082, allocations: 148 kB / 359.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003309/0.1086, allocations: 470.6 kB / 359.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005807/0.1092, allocations: 0.629 MB / 360.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001368/0.1105, allocations: 1.732 MB / 361.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1106, allocations: 0 / 361.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1106, allocations: 0 / 361.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.266e-05/0.1106, allocations: 0 / 361.9 MB, free: 8.355 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00271/0.1133, allocations: 1.821 MB / 363.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1134, allocations: 8.031 kB / 363.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.1135, allocations: 94.7 kB / 363.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002537/0.1137, allocations: 163 kB / 364 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.1153, allocations: 1.157 MB / 365.2 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/0.1156, allocations: 144.7 kB / 365.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-05/0.1157, allocations: 48 kB / 365.3 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.1169, allocations: 0.6635 MB / 366 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.1169, allocations: 3.938 kB / 366 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/0.1169, allocations: 24 kB / 366 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.117, allocations: 19.92 kB / 366.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008158/0.1178, allocations: 447.7 kB / 366.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004019/0.1218, allocations: 2.895 MB / 369.4 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.1228, allocations: 449.5 kB / 369.8 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.155/0.2778, allocations: 314 kB / 370.1 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.878e-05/0.2779, allocations: 7.156 kB / 370.1 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.2779, allocations: 37.41 kB / 370.2 MB, free: 25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.175e-06/0.2779, allocations: 0.5 kB / 370.2 MB, free: 25 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002324/0.2803, allocations: 0.8021 MB / 371 MB, free: 24.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.2803, allocations: 267.1 kB / 371.2 MB, free: 24.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/0.2839, allocations: 2.229 MB / 373.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.2839, allocations: 32.45 kB / 373.5 MB, free: 24.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004348/0.2844, allocations: 0.6431 MB / 374.1 MB, free: 23.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.928e-05/0.2845, allocations: 100.4 kB / 374.2 MB, free: 23.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.2846, allocations: 79.14 kB / 374.3 MB, free: 23.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.2847, allocations: 322.6 kB / 374.6 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003986/0.2851, allocations: 169.8 kB / 374.8 MB, free: 23.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.2855, allocations: 321.2 kB / 375.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007515/0.2863, allocations: 419.2 kB / 375.5 MB, free: 22.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2863, allocations: 5.312 kB / 375.5 MB, free: 22.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001507/0.2878, allocations: 0.6607 MB / 376.2 MB, free: 22.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.2878, allocations: 8.094 kB / 376.2 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2879, allocations: 2.906 kB / 376.2 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002768/0.2881, allocations: 65.16 kB / 376.3 MB, free: 22.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/0.2885, allocations: 97.28 kB / 376.4 MB, free: 22.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.2899, allocations: 1.78 MB / 378.1 MB, free: 20.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005153/0.2904, allocations: 56.28 kB / 378.2 MB, free: 20.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.2905, allocations: 18.25 kB / 378.2 MB, free: 20.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005137/0.291, allocations: 490.6 kB / 378.7 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/0.2912, allocations: 133.3 kB / 378.8 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.2914, allocations: 160.7 kB / 379 MB, free: 20.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.2914, allocations: 8 kB / 379 MB, free: 20.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.2914, allocations: 0 / 379 MB, free: 20.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2914, allocations: 4.969 kB / 379 MB, free: 20.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002958/0.2944, allocations: 1.679 MB / 380.7 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.2944, allocations: 1.25 kB / 380.7 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/0.2948, allocations: 75.41 kB / 380.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.295, allocations: 55.23 kB / 380.8 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.295, allocations: 9.609 kB / 380.8 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.2963, allocations: 1.719 MB / 382.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2963, allocations: 1.172 kB / 382.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.2979, allocations: 0.8367 MB / 383.4 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004457/0.2984, allocations: 327.5 kB / 383.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.2986, allocations: 13.12 kB / 383.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005529/0.2991, allocations: 56.52 kB / 383.8 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.2992, allocations: 27.78 kB / 383.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.2993, allocations: 16.97 kB / 383.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00244/0.3017, allocations: 1.596 MB / 385.4 MB, free: 16.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.61e-07/0.3017, allocations: 0 / 385.4 MB, free: 16.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008106/0.3026, allocations: 215.9 kB / 385.6 MB, free: 16.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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 Backend phase and start with SimCode phase: time 0.002738/0.3053, allocations: 1.743 MB / 387.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.3065, allocations: 0.5469 MB / 387.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3065, allocations: 0.9062 kB / 387.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005525/0.3071, allocations: 319.5 kB / 388.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.3082, allocations: 205.7 kB / 388.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02129/0.3295, allocations: 15.75 MB / 404.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006413/0.3301, allocations: 1.253 MB / 405.4 MB, free: 1.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000497/0.3307, allocations: 223.8 kB / 405.6 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004654/0.3311, allocations: 475.3 kB / 406.1 MB, free: 404 kB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3312, allocations: 0 / 406.1 MB, free: 404 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04811/0.3793, allocations: 27.19 MB / 433.3 MB, free: 5.5 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002773/0.3796, allocations: 280.6 kB / 433.6 MB, free: 5.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.586/2.966, allocations: 0 / 433.6 MB, free: 5.125 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)