Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0008867/0.0008867, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001007/0.001007, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8979/0.8979, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.528e-05/1.671e-05, allocations: 4.953 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00461/0.004627, allocations: 5.399 MB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.006819, allocations: 2.2 MB / 332.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002457/0.007064, allocations: 19.88 kB / 332.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009108/0.007975, allocations: 0.6143 MB / 332.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004969/0.008472, allocations: 465.3 kB / 333.2 MB, free: 7.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000734/0.009206, allocations: 414 kB / 333.6 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008553/0.01006, allocations: 1.348 MB / 334.9 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003479/0.01041, allocations: 294.4 kB / 335.2 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005037/0.01091, allocations: 0.7212 MB / 336 MB, free: 4.387 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003886/0.0113, allocations: 0.5066 MB / 336.5 MB, free: 3.879 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.744e-05/0.01139, allocations: 116 kB / 336.6 MB, free: 3.766 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.01157, allocations: 179.8 kB / 336.7 MB, free: 3.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002977/0.01187, allocations: 0.6623 MB / 337.4 MB, free: 2.926 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003162/0.01218, allocations: 0.5297 MB / 337.9 MB, free: 2.395 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.01386, allocations: 2.59 MB / 340.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.01386, allocations: 4 kB / 340.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.01386, allocations: 0 / 340.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.282e-05/0.01389, allocations: 0 / 340.5 MB, free: 15.79 MB / 314.7 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.002276/0.01616, allocations: 2.339 MB / 342.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.0162, allocations: 19.92 kB / 342.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.227e-05/0.01629, allocations: 110.7 kB / 343 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.01647, allocations: 223.5 kB / 343.2 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001648/0.01812, allocations: 1.635 MB / 344.9 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.01824, allocations: 182.4 kB / 345 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.711e-05/0.01831, allocations: 68.31 kB / 345.1 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.01931, allocations: 1.177 MB / 346.3 MB, free: 9.766 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.01932, allocations: 4 kB / 346.3 MB, free: 9.762 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.01936, allocations: 28 kB / 346.3 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.01937, allocations: 16 kB / 346.3 MB, free: 9.719 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006806/0.02005, allocations: 0.5593 MB / 346.9 MB, free: 9.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003706/0.02376, allocations: 3.6 MB / 350.5 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007447/0.0245, allocations: 0.4956 MB / 351 MB, free: 4.941 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/0.02495, allocations: 342.5 kB / 351.3 MB, free: 4.605 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.02497, allocations: 4.281 kB / 351.3 MB, free: 4.602 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.025, allocations: 38.84 kB / 351.4 MB, free: 4.555 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.054e-06/0.025, allocations: 0 / 351.4 MB, free: 4.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001279/0.02628, allocations: 0.8775 MB / 352.2 MB, free: 3.668 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.527e-05/0.02636, allocations: 265 kB / 352.5 MB, free: 3.348 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002936/0.0293, allocations: 3.176 MB / 355.7 MB, free: 140 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.02934, allocations: 29.7 kB / 355.7 MB, free: 104 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004963/0.02983, allocations: 0.8615 MB / 356.6 MB, free: 15.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.729e-05/0.0299, allocations: 119 kB / 356.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.03001, allocations: 106 kB / 356.8 MB, free: 15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.493e-05/0.03009, allocations: 322 kB / 357.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.03036, allocations: 208.9 kB / 357.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004112/0.03077, allocations: 0.5848 MB / 357.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005765/0.03135, allocations: 0.5284 MB / 358.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.03135, allocations: 0 / 358.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008944/0.03225, allocations: 0.77 MB / 359.2 MB, free: 12.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.03227, allocations: 8 kB / 359.2 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.03227, allocations: 4 kB / 359.2 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.0325, allocations: 81 kB / 359.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.03274, allocations: 107.9 kB / 359.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.03387, allocations: 1.687 MB / 361.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.03418, allocations: 71.59 kB / 361.1 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.0342, allocations: 20 kB / 361.2 MB, free: 10.32 MB / 330.7 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.000816/0.03502, allocations: 0.6607 MB / 361.8 MB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.03516, allocations: 194.7 kB / 362 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001807/0.03534, allocations: 218.6 kB / 362.2 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.03535, allocations: 3.938 kB / 362.2 MB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.03535, allocations: 7.984 kB / 362.2 MB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.03536, allocations: 3.938 kB / 362.2 MB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.03739, allocations: 1.912 MB / 364.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.03739, allocations: 3.938 kB / 364.1 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.03759, allocations: 79.94 kB / 364.2 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.03772, allocations: 56.89 kB / 364.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.384e-05/0.03774, allocations: 15.98 kB / 364.3 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009546/0.03869, allocations: 1.621 MB / 365.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.0387, allocations: 4.094 kB / 365.9 MB, free: 5.367 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.03976, allocations: 0.9958 MB / 366.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004784/0.04024, allocations: 386.4 kB / 367.3 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.472e-05/0.04033, allocations: 12 kB / 367.3 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.04059, allocations: 51.94 kB / 367.4 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.921e-05/0.04067, allocations: 35.94 kB / 367.4 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.04069, allocations: 12 kB / 367.4 MB, free: 3.855 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002208/0.0429, allocations: 2.259 MB / 369.7 MB, free: 1.578 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.0429, allocations: 4 kB / 369.7 MB, free: 1.574 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000579/0.04347, allocations: 255.6 kB / 369.9 MB, free: 1.324 MB / 330.7 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.001969/0.04544, allocations: 1.908 MB / 371.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008245/0.04627, allocations: 0.593 MB / 372.4 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.04627, allocations: 0 / 372.4 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.04664, allocations: 355 kB / 372.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.04741, allocations: 293.5 kB / 373.1 MB, free: 14.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03084/0.07825, allocations: 19.93 MB / 393 MB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000774/0.07902, allocations: 0.9122 MB / 393.9 MB, free: 9.117 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000569/0.07959, allocations: 295.3 kB / 394.2 MB, free: 8.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005417/0.08013, allocations: 0.6448 MB / 394.8 MB, free: 8.18 MB / 362.7 MB Notification: Performance of SimCode: time 1.242e-06/0.08014, allocations: 0 / 394.8 MB, free: 8.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05502/0.1352, allocations: 38.32 MB / 433.1 MB, free: 2.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.984/9.119, allocations: 11.12 kB / 433.2 MB, free: 2.012 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.658245962113142]