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.001731/0.001731, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001272/0.001273, allocations: 189.4 kB / 18 MB, free: 5.098 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.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 47.91 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2721, allocations: 49.43 MB / 400.2 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006325/0.2785, allocations: 3.978 MB / 404.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003503/0.282, allocations: 1.909 MB / 406.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005441/0.2826, allocations: 19.94 kB / 406.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.2841, allocations: 0.5865 MB / 406.7 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008051/0.285, allocations: 350.2 kB / 407.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007355/0.2858, allocations: 282.6 kB / 407.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.2871, allocations: 0.9897 MB / 408.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005377/0.2877, allocations: 348.5 kB / 408.7 MB, free: 384 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005916/0.2883, allocations: 386.8 kB / 409 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006338/0.2889, allocations: 490.2 kB / 409.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.2891, allocations: 80 kB / 409.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003159/0.2894, allocations: 140 kB / 409.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004264/0.2898, allocations: 474.6 kB / 410.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006688/0.2905, allocations: 0.629 MB / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002071/0.2926, allocations: 1.758 MB / 412.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2926, allocations: 4 kB / 412.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2926, allocations: 0 / 412.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.2927, allocations: 0 / 412.6 MB, free: 12.43 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00316/0.2958, allocations: 1.86 MB / 414.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.2959, allocations: 8.031 kB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001475/0.296, allocations: 94.7 kB / 414.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002503/0.2963, allocations: 167.9 kB / 414.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/0.2981, allocations: 1.194 MB / 415.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.2983, allocations: 100.7 kB / 416 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.749e-05/0.2984, allocations: 48 kB / 416 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.2996, allocations: 0.6655 MB / 416.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.2996, allocations: 0 / 416.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.627e-05/0.2997, allocations: 24 kB / 416.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.2997, allocations: 12 kB / 416.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008815/0.3006, allocations: 431.7 kB / 417.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00478/0.3054, allocations: 2.876 MB / 420 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.3064, allocations: 426.5 kB / 420.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006794/0.3071, allocations: 316.3 kB / 420.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.777e-05/0.3071, allocations: 7.984 kB / 420.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.3072, allocations: 47 kB / 420.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.415e-06/0.3072, allocations: 0 / 420.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.002063/0.3093, allocations: 0.7679 MB / 421.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002831/0.3096, allocations: 265 kB / 421.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003185/0.3128, allocations: 2.226 MB / 424.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.596e-05/0.3128, allocations: 37.7 kB / 424.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006883/0.3135, allocations: 0.6396 MB / 424.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.3137, allocations: 118.9 kB / 424.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3138, allocations: 82.02 kB / 425 MB, free: 15.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.314, allocations: 325.9 kB / 425.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.3143, allocations: 156.7 kB / 425.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000536/0.3149, allocations: 304.5 kB / 425.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000868/0.3158, allocations: 401.1 kB / 426.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3158, allocations: 0 / 426.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001491/0.3173, allocations: 0.6455 MB / 426.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.3173, allocations: 11.94 kB / 426.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3173, allocations: 4 kB / 426.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.3176, allocations: 60.81 kB / 426.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.318, allocations: 96 kB / 426.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.32, allocations: 1.771 MB / 428.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/0.3205, allocations: 51.72 kB / 428.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.647e-05/0.3206, allocations: 15.98 kB / 428.8 MB, free: 11.59 MB / 350.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.0007118/0.3213, allocations: 493.7 kB / 429.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/0.3215, allocations: 135.2 kB / 429.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.3217, allocations: 165.4 kB / 429.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.3218, allocations: 8 kB / 429.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3218, allocations: 0 / 429.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3218, allocations: 3.984 kB / 429.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/0.3246, allocations: 1.662 MB / 431.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3246, allocations: 0 / 431.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.325, allocations: 71.89 kB / 431.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/0.3252, allocations: 60.88 kB / 431.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.3252, allocations: 8 kB / 431.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/0.327, allocations: 1.716 MB / 433.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/0.327, allocations: 11.95 kB / 433.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.3286, allocations: 0.8108 MB / 433.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004805/0.3291, allocations: 328.1 kB / 434.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.3292, allocations: 8.125 kB / 434.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/0.3297, allocations: 56.05 kB / 434.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.458e-05/0.3298, allocations: 35.88 kB / 434.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.3298, allocations: 12 kB / 434.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002132/0.3319, allocations: 1.6 MB / 435.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3319, allocations: 0 / 435.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007109/0.3327, allocations: 203.7 kB / 436.1 MB, free: 3.961 MB / 350.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.003408/0.3361, allocations: 1.718 MB / 437.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.3372, allocations: 0.5061 MB / 438.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.3372, allocations: 0 / 438.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005392/0.3377, allocations: 314.8 kB / 438.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009001/0.3387, allocations: 207.9 kB / 438.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/0.3586, allocations: 13.88 MB / 452.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/0.3597, allocations: 1.253 MB / 454 MB, free: 1.945 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005206/0.3602, allocations: 219.8 kB / 454.2 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000624/0.3608, allocations: 479.2 kB / 454.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3608, allocations: 0 / 454.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08487/0.4457, allocations: 27.91 MB / 482.6 MB, free: 5.605 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.28, allocations: 12 kB / 482.6 MB, free: 5.594 MB / 398.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)