Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001277/0.001277, allocations: 117.8 kB / 18.5 MB, free: 4.434 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.001396/0.001396, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.423/1.423, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",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.001971/0.001971, allocations: 63.89 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1091, allocations: 53.31 MB / 426.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.2042/0.3133, allocations: 6.09 MB / 433 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003808/0.3171, allocations: 2.325 MB / 435.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004625/0.3176, allocations: 18.94 kB / 435.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.319, allocations: 0.6191 MB / 435.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000867/0.3199, allocations: 453.3 kB / 436.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008636/0.3207, allocations: 401.9 kB / 436.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001431/0.3221, allocations: 1.309 MB / 438.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005118/0.3227, allocations: 348.1 kB / 438.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007589/0.3234, allocations: 0.4917 MB / 438.9 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007567/0.3242, allocations: 0.6108 MB / 439.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.3243, allocations: 114.6 kB / 439.6 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003391/0.3247, allocations: 177.7 kB / 439.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004914/0.3252, allocations: 0.6537 MB / 440.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007331/0.3259, allocations: 0.8876 MB / 441.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002936/0.3288, allocations: 2.641 MB / 444 MB, free: 4.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3288, allocations: 0.6094 kB / 444 MB, free: 4.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3288, allocations: 0 / 444 MB, free: 4.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-05/0.3289, allocations: 5.094 kB / 444 MB, free: 4.266 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004562/0.3335, allocations: 2.444 MB / 446.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3335, allocations: 9.812 kB / 446.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001307/0.3336, allocations: 107.9 kB / 446.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003773/0.334, allocations: 229.4 kB / 446.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002935/0.337, allocations: 1.692 MB / 448.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.3371, allocations: 107.6 kB / 448.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.922e-05/0.3372, allocations: 65 kB / 448.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.3386, allocations: 0.8233 MB / 449.4 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.3386, allocations: 5.344 kB / 449.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.932e-05/0.3386, allocations: 26.53 kB / 449.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.3387, allocations: 15.16 kB / 449.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.3397, allocations: 0.5452 MB / 450 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007342/0.347, allocations: 4 MB / 454 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.3483, allocations: 0.5028 MB / 454.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007405/0.3491, allocations: 343.7 kB / 454.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.3491, allocations: 2.938 kB / 454.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.3491, allocations: 38.59 kB / 454.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.274e-06/0.3491, allocations: 0 / 454.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002871/0.352, allocations: 0.9561 MB / 455.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001831/0.3522, allocations: 270.3 kB / 456.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005972/0.3581, allocations: 3.157 MB / 459.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.3583, allocations: 36.39 kB / 459.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.3593, allocations: 0.8625 MB / 460.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.3595, allocations: 126.7 kB / 460.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.3597, allocations: 96.39 kB / 460.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3599, allocations: 326.7 kB / 460.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005074/0.3604, allocations: 211.3 kB / 460.9 MB, free: 10.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006286/0.361, allocations: 395.7 kB / 461.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009556/0.362, allocations: 0.5157 MB / 461.8 MB, free: 9.734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.362, allocations: 0.9688 kB / 461.8 MB, free: 9.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002047/0.364, allocations: 0.7887 MB / 462.6 MB, free: 9.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.364, allocations: 6.844 kB / 462.6 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.364, allocations: 7.297 kB / 462.6 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000294/0.3643, allocations: 61.48 kB / 462.7 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000446/0.3648, allocations: 121.8 kB / 462.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/0.3667, allocations: 1.786 MB / 464.6 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009909/0.3677, allocations: 84.97 kB / 464.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.625e-05/0.3678, allocations: 23.02 kB / 464.7 MB, free: 7.449 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.001222/0.369, allocations: 0.653 MB / 465.4 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000524/0.3695, allocations: 196.3 kB / 465.6 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004279/0.3699, allocations: 220.9 kB / 465.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3699, allocations: 3.406 kB / 465.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.37, allocations: 0.875 kB / 465.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.37, allocations: 0 / 465.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004628/0.3746, allocations: 2.162 MB / 467.9 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3746, allocations: 4.062 kB / 467.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004121/0.375, allocations: 88.94 kB / 468 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/0.3752, allocations: 56.02 kB / 468.1 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.3752, allocations: 10.11 kB / 468.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001747/0.377, allocations: 1.744 MB / 469.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.377, allocations: 0 / 469.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.3794, allocations: 0.9807 MB / 470.8 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001438/0.3809, allocations: 448.7 kB / 471.3 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003324/0.3812, allocations: 11.38 kB / 471.3 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005807/0.3818, allocations: 57.62 kB / 471.3 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.3819, allocations: 40.73 kB / 471.4 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.3819, allocations: 11.44 kB / 471.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004059/0.386, allocations: 2.26 MB / 473.6 MB, free: 1.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.386, allocations: 0 / 473.6 MB, free: 1.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001562/0.3876, allocations: 263.5 kB / 473.9 MB, free: 1.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,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 (29): * Single equations (assignments): 28 * 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.004288/0.3918, allocations: 1.896 MB / 475.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.3933, allocations: 0.5896 MB / 476.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.3933, allocations: 4.312 kB / 476.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007097/0.394, allocations: 346.4 kB / 476.7 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/0.3966, allocations: 298.4 kB / 477 MB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04136/0.4379, allocations: 19.76 MB / 496.8 MB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/0.4396, allocations: 1.497 MB / 498.3 MB, free: 8.539 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009464/0.4405, allocations: 303.1 kB / 498.6 MB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/0.4416, allocations: 0.6477 MB / 499.2 MB, free: 7.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.133e-06/0.4416, allocations: 0 / 499.2 MB, free: 7.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09047/0.5321, allocations: 36.51 MB / 0.5232 GB, free: 3.344 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.31, allocations: 7.844 kB / 0.5232 GB, free: 3.34 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.79956543399021] Failed to read output from testmodel.py, exit status != 0: ['time', 'cell.cell.capacitor[1].v', 'cell.cell.capacitor[2].v', 'cell.cell.limIntegrator.y', 'cell.limIntegrator.y', 'energy.y'] 15.476794950198382 15.490492971 15.158727648 Calling exit ...