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.001139/0.001139, allocations: 112.8 kB / 17.06 MB, free: 5.977 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.001489/0.001489, allocations: 199 kB / 18.01 MB, free: 5.059 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.856/1.856, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 39.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2875, allocations: 49.45 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005365/0.293, allocations: 3.968 MB / 404.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00286/0.2958, allocations: 1.91 MB / 406.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003134/0.2962, allocations: 15.94 kB / 406.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.2975, allocations: 0.5914 MB / 406.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005101/0.298, allocations: 342.3 kB / 407 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005695/0.2986, allocations: 295.2 kB / 407.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008892/0.2995, allocations: 0.9858 MB / 408.3 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004713/0.3, allocations: 344.5 kB / 408.7 MB, free: 356 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003753/0.3004, allocations: 378.8 kB / 409 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005411/0.3009, allocations: 0.4905 MB / 409.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.589e-05/0.301, allocations: 84 kB / 409.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.3013, allocations: 135.9 kB / 409.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003056/0.3016, allocations: 474.7 kB / 410.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.302, allocations: 0.629 MB / 410.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001325/0.3034, allocations: 1.744 MB / 412.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.3034, allocations: 7.984 kB / 412.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3034, allocations: 0 / 412.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.3034, allocations: 0 / 412.6 MB, free: 12.41 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.002864/0.3063, allocations: 1.81 MB / 414.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3063, allocations: 12.03 kB / 414.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.3064, allocations: 90.7 kB / 414.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.3067, allocations: 163 kB / 414.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.3084, allocations: 1.181 MB / 415.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.3085, allocations: 96.72 kB / 415.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.969e-05/0.3086, allocations: 51.91 kB / 416 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009947/0.3096, allocations: 0.6673 MB / 416.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.3096, allocations: 0 / 416.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.3097, allocations: 20 kB / 416.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.3097, allocations: 15.94 kB / 416.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007226/0.3104, allocations: 439.7 kB / 417.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003967/0.3144, allocations: 2.856 MB / 420 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009702/0.3154, allocations: 438.4 kB / 420.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000642/0.316, allocations: 324.3 kB / 420.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.3161, allocations: 4 kB / 420.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.3161, allocations: 39.06 kB / 420.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.993e-06/0.3161, allocations: 0 / 420.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001786/0.3179, allocations: 0.7671 MB / 421.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.318, allocations: 265 kB / 421.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/0.3206, allocations: 2.234 MB / 424 MB, free: 0.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.3206, allocations: 33.7 kB / 424 MB, free: 0.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004994/0.3211, allocations: 0.6273 MB / 424.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.825e-05/0.3212, allocations: 118.4 kB / 424.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3214, allocations: 77.98 kB / 424.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3215, allocations: 321.9 kB / 425.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/0.3218, allocations: 164.6 kB / 425.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004088/0.3222, allocations: 304.5 kB / 425.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.3229, allocations: 405.1 kB / 426 MB, free: 14.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3229, allocations: 0 / 426 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001377/0.3243, allocations: 0.6331 MB / 426.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.3243, allocations: 7.938 kB / 426.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.3244, allocations: 4 kB / 426.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000327/0.3247, allocations: 64.94 kB / 426.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003886/0.3251, allocations: 87.89 kB / 426.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.3268, allocations: 1.767 MB / 428.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004293/0.3272, allocations: 63.53 kB / 428.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.3273, allocations: 12 kB / 428.7 MB, free: 11.66 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.0005767/0.3279, allocations: 491.2 kB / 429.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.3281, allocations: 134.3 kB / 429.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.3283, allocations: 169.4 kB / 429.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3283, allocations: 4.062 kB / 429.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3283, allocations: 4 kB / 429.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3283, allocations: 3.938 kB / 429.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.3312, allocations: 1.654 MB / 431.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3312, allocations: 0 / 431.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/0.3315, allocations: 75.94 kB / 431.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001852/0.3317, allocations: 52.83 kB / 431.2 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.3318, allocations: 11.94 kB / 431.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/0.3333, allocations: 1.724 MB / 433 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3333, allocations: 3.938 kB / 433 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.3347, allocations: 0.7945 MB / 433.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006301/0.3353, allocations: 335.3 kB / 434.1 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3355, allocations: 8.125 kB / 434.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004593/0.3359, allocations: 47.95 kB / 434.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.455e-05/0.336, allocations: 31.91 kB / 434.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.336, allocations: 11.98 kB / 434.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001989/0.338, allocations: 1.6 MB / 435.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.338, allocations: 0 / 435.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007104/0.3388, allocations: 207.5 kB / 436 MB, free: 4.051 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.002683/0.3415, allocations: 1.703 MB / 437.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.3425, allocations: 0.5063 MB / 438.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3425, allocations: 4.188 kB / 438.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004998/0.343, allocations: 306.4 kB / 438.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008655/0.3439, allocations: 214.4 kB / 438.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0176/0.3615, allocations: 13.82 MB / 452.5 MB, free: 3.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008653/0.3624, allocations: 1.26 MB / 453.8 MB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004602/0.3629, allocations: 215.8 kB / 454 MB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005814/0.3635, allocations: 471.3 kB / 454.5 MB, free: 1.426 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3635, allocations: 0 / 454.5 MB, free: 1.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.111/2.475, allocations: 28.37 MB / 482.8 MB, free: 5.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.65/24.12, allocations: 2.922 kB / 482.8 MB, free: 5.324 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)