Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001616/0.001616, allocations: 113.8 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001865/0.001865, allocations: 204.9 kB / 21.46 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.432/1.432, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 63.91 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1082, allocations: 53.32 MB / 426.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006061/0.1143, allocations: 4.057 MB / 430.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2/0.3143, allocations: 2.067 MB / 433 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003327/0.3146, allocations: 12.09 kB / 433 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.3158, allocations: 0.5939 MB / 433.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005597/0.3163, allocations: 390.6 kB / 434 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.3168, allocations: 291.3 kB / 434.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007991/0.3176, allocations: 0.9816 MB / 435.2 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.318, allocations: 256.8 kB / 435.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003596/0.3184, allocations: 388.9 kB / 435.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005232/0.3189, allocations: 0.5114 MB / 436.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.319, allocations: 80.22 kB / 436.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002455/0.3192, allocations: 135.4 kB / 436.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003293/0.3196, allocations: 476 kB / 437.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004532/0.32, allocations: 0.6316 MB / 437.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001842/0.3219, allocations: 1.772 MB / 439.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3219, allocations: 0 / 439.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3219, allocations: 1 kB / 439.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.3219, allocations: 0 / 439.5 MB, free: 6.156 MB / 350.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.002872/0.3248, allocations: 1.874 MB / 441.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3248, allocations: 10.73 kB / 441.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.3249, allocations: 96.64 kB / 441.4 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.3252, allocations: 170.2 kB / 441.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.3272, allocations: 1.196 MB / 442.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.3273, allocations: 101.3 kB / 442.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.916e-05/0.3273, allocations: 52.02 kB / 443 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.3284, allocations: 0.6581 MB / 443.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.3284, allocations: 1 kB / 443.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.063e-05/0.3285, allocations: 22.38 kB / 443.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.3285, allocations: 11.53 kB / 443.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007427/0.3292, allocations: 439.6 kB / 444.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00448/0.3337, allocations: 2.863 MB / 446.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009629/0.3347, allocations: 395 kB / 447.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006775/0.3354, allocations: 291.2 kB / 447.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.3354, allocations: 3.438 kB / 447.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.3354, allocations: 38.47 kB / 447.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.883e-06/0.3354, allocations: 1.156 kB / 447.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002106/0.3375, allocations: 0.7792 MB / 448.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.3376, allocations: 266.7 kB / 448.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003097/0.3407, allocations: 2.247 MB / 450.9 MB, free: 340 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.652e-05/0.3408, allocations: 32.45 kB / 451 MB, free: 304 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000904/0.3417, allocations: 0.6799 MB / 451.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3418, allocations: 113.2 kB / 451.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.342, allocations: 82.27 kB / 451.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3421, allocations: 321.8 kB / 452.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000331/0.3424, allocations: 163.4 kB / 452.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.3429, allocations: 301.6 kB / 452.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007126/0.3436, allocations: 393.4 kB / 453 MB, free: 14.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3436, allocations: 1.281 kB / 453 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001423/0.345, allocations: 0.6496 MB / 453.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.3451, allocations: 14 kB / 453.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3451, allocations: 1.531 kB / 453.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003115/0.3454, allocations: 67.05 kB / 453.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/0.3458, allocations: 88.12 kB / 453.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.3476, allocations: 1.763 MB / 455.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005356/0.3482, allocations: 64.31 kB / 455.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.3482, allocations: 18.03 kB / 455.7 MB, free: 12.98 MB / 366.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.0007545/0.3489, allocations: 478.7 kB / 456.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.3492, allocations: 151.2 kB / 456.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.3494, allocations: 163.5 kB / 456.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3494, allocations: 4.234 kB / 456.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3494, allocations: 0 / 456.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3494, allocations: 6.812 kB / 456.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.3525, allocations: 1.646 MB / 458.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3525, allocations: 1.094 kB / 458.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.3528, allocations: 71.7 kB / 458.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001825/0.353, allocations: 62.66 kB / 458.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.3531, allocations: 11.12 kB / 458.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.3548, allocations: 1.723 MB / 460 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3548, allocations: 6.812 kB / 460 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.3563, allocations: 0.8008 MB / 460.8 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007229/0.357, allocations: 333.9 kB / 461.1 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.3571, allocations: 16.55 kB / 461.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/0.3576, allocations: 43.7 kB / 461.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.3577, allocations: 32.59 kB / 461.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.3577, allocations: 7.188 kB / 461.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0025/0.3602, allocations: 1.615 MB / 462.8 MB, free: 8.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3602, allocations: 4 kB / 462.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008454/0.361, allocations: 208.7 kB / 463 MB, free: 8.223 MB / 366.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.003388/0.3644, allocations: 1.709 MB / 464.7 MB, free: 7.129 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.3656, allocations: 493.2 kB / 465.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3656, allocations: 1.938 kB / 465.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005651/0.3661, allocations: 314.5 kB / 465.5 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009679/0.3671, allocations: 202.6 kB / 465.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02159/0.3887, allocations: 13.9 MB / 479.6 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.3898, allocations: 1.264 MB / 480.9 MB, free: 9.523 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006819/0.3905, allocations: 219.8 kB / 481.1 MB, free: 9.305 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006541/0.3912, allocations: 471.3 kB / 481.5 MB, free: 8.844 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3912, allocations: 4 kB / 481.5 MB, free: 8.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09184/0.483, allocations: 28.14 MB / 0.4977 GB, free: 12.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.12, allocations: 23.06 kB / 0.4978 GB, free: 12.93 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.569115106016397] Failed to read output from testmodel.py, exit status != 0: ['time', 'battery.capacitor[1].v', 'battery.capacitor[2].v', 'battery.limIntegrator.y', 'energy.y'] 14.273859394248575 14.288458281 13.963774076 Calling exit ...