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.001263/0.001263, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.001298/0.001298, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.412/1.412, allocations: 230.5 MB / 254.8 MB, free: 15.27 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.001988/0.001988, allocations: 67.83 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.105, allocations: 53.33 MB / 427 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005715/0.1107, allocations: 4.061 MB / 431.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003457/0.1142, allocations: 2.072 MB / 433.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000325/0.1145, allocations: 15.88 kB / 433.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.1158, allocations: 0.5915 MB / 433.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007634/0.1165, allocations: 394 kB / 434.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.1172, allocations: 286.4 kB / 434.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.1184, allocations: 0.9819 MB / 435.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004456/0.1188, allocations: 256.6 kB / 435.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005308/0.1194, allocations: 402.6 kB / 436 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006323/0.12, allocations: 0.506 MB / 436.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1201, allocations: 84 kB / 436.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000306/0.1204, allocations: 136 kB / 436.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004101/0.1208, allocations: 474.7 kB / 437.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006217/0.1214, allocations: 0.6329 MB / 437.8 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001965/0.1234, allocations: 1.77 MB / 439.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1234, allocations: 0 / 439.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1234, allocations: 0 / 439.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.1234, allocations: 0 / 439.6 MB, free: 8.172 MB / 366.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.003196/0.1266, allocations: 1.875 MB / 441.5 MB, free: 6.238 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.1267, allocations: 8.031 kB / 441.5 MB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.1268, allocations: 94.7 kB / 441.6 MB, free: 6.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002921/0.1271, allocations: 167.9 kB / 441.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.1289, allocations: 1.198 MB / 442.9 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.129, allocations: 96.72 kB / 443 MB, free: 4.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.318e-05/0.1291, allocations: 51.95 kB / 443.1 MB, free: 4.562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.1303, allocations: 0.6635 MB / 443.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1303, allocations: 0 / 443.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.743e-05/0.1304, allocations: 24 kB / 443.8 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1304, allocations: 12 kB / 443.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008312/0.1312, allocations: 443.6 kB / 444.2 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004444/0.1356, allocations: 2.868 MB / 447.1 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.1367, allocations: 398.5 kB / 447.5 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1849/0.3215, allocations: 285.4 kB / 447.8 MB, free: 23.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.3216, allocations: 3.625 kB / 447.8 MB, free: 23.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.3216, allocations: 41 kB / 447.8 MB, free: 23.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.224e-06/0.3216, allocations: 0.75 kB / 447.8 MB, free: 23.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.001961/0.3236, allocations: 0.7767 MB / 448.6 MB, free: 23.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.3236, allocations: 268.7 kB / 448.8 MB, free: 23.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002608/0.3262, allocations: 2.244 MB / 451.1 MB, free: 23.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.3263, allocations: 33.8 kB / 451.1 MB, free: 23.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004097/0.3267, allocations: 0.6527 MB / 451.8 MB, free: 22.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.453e-05/0.3268, allocations: 110.2 kB / 451.9 MB, free: 22.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.3269, allocations: 81.2 kB / 452 MB, free: 22.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.198e-05/0.3269, allocations: 319.4 kB / 452.3 MB, free: 22.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.3273, allocations: 164.6 kB / 452.4 MB, free: 22.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.3277, allocations: 295.4 kB / 452.7 MB, free: 22.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006304/0.3283, allocations: 395.2 kB / 453.1 MB, free: 21.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3283, allocations: 1.219 kB / 453.1 MB, free: 21.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001382/0.3297, allocations: 0.6538 MB / 453.8 MB, free: 21.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3297, allocations: 7.547 kB / 453.8 MB, free: 21.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3297, allocations: 1.906 kB / 453.8 MB, free: 21.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002868/0.33, allocations: 62.66 kB / 453.8 MB, free: 21.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003704/0.3304, allocations: 97.88 kB / 453.9 MB, free: 21.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.3317, allocations: 1.763 MB / 455.7 MB, free: 19.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.3322, allocations: 60.88 kB / 455.8 MB, free: 19.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.3322, allocations: 11.53 kB / 455.8 MB, free: 19.94 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.0005843/0.3328, allocations: 496.5 kB / 456.2 MB, free: 19.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.3329, allocations: 140.3 kB / 456.4 MB, free: 19.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.3331, allocations: 160.8 kB / 456.5 MB, free: 19.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3332, allocations: 4.156 kB / 456.5 MB, free: 19.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3332, allocations: 0 / 456.5 MB, free: 19.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3332, allocations: 7.969 kB / 456.6 MB, free: 19.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002556/0.3357, allocations: 1.663 MB / 458.2 MB, free: 18.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.3357, allocations: 1.219 kB / 458.2 MB, free: 18.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003189/0.336, allocations: 70.7 kB / 458.3 MB, free: 18.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.3362, allocations: 52.89 kB / 458.3 MB, free: 18.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.3362, allocations: 15.16 kB / 458.4 MB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.3374, allocations: 1.72 MB / 460.1 MB, free: 17.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3374, allocations: 1.406 kB / 460.1 MB, free: 17.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.3388, allocations: 0.7952 MB / 460.9 MB, free: 16.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004555/0.3392, allocations: 345.9 kB / 461.2 MB, free: 16.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.3394, allocations: 9.141 kB / 461.2 MB, free: 16.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004666/0.3398, allocations: 44.44 kB / 461.3 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/0.3399, allocations: 30.34 kB / 461.3 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.3399, allocations: 15.86 kB / 461.3 MB, free: 16.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002098/0.342, allocations: 1.614 MB / 462.9 MB, free: 16.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.342, allocations: 0 / 462.9 MB, free: 16.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007622/0.3428, allocations: 203.9 kB / 463.1 MB, free: 15.98 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.003157/0.346, allocations: 1.711 MB / 464.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.347, allocations: 487.6 kB / 465.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.347, allocations: 5.625 kB / 465.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000508/0.3476, allocations: 301.8 kB / 465.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008986/0.3485, allocations: 214.3 kB / 465.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01983/0.3683, allocations: 13.9 MB / 479.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006651/0.3689, allocations: 1.259 MB / 481 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004825/0.3694, allocations: 220.9 kB / 481.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004372/0.3699, allocations: 481.4 kB / 481.7 MB, free: 7.957 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3699, allocations: 0 / 481.7 MB, free: 7.957 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06401/0.4339, allocations: 28.14 MB / 0.4979 GB, free: 12.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.14, allocations: 8.578 kB / 0.4979 GB, free: 12.61 MB / 398.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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 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.727973162662238] 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.305458550341427 14.318377171 14.192079312 Calling exit ...