Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.34 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.0008652/0.0008652, allocations: 156.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.8864/0.8864, allocations: 177 MB / 204.1 MB, free: 5.758 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_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.417e-05/1.567e-05, allocations: 4.953 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004372/0.004388, allocations: 4.963 MB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.00664, allocations: 1.803 MB / 331.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.006925, allocations: 15.88 kB / 331.3 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007905/0.007716, allocations: 0.5094 MB / 331.8 MB, free: 8.578 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005473/0.008263, allocations: 405.7 kB / 332.2 MB, free: 8.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005778/0.008841, allocations: 370.1 kB / 332.6 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007665/0.009607, allocations: 0.9196 MB / 333.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.009936, allocations: 225.3 kB / 333.7 MB, free: 6.672 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004737/0.01041, allocations: 0.5146 MB / 334.2 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.01078, allocations: 383 kB / 334.6 MB, free: 5.781 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.191e-05/0.01085, allocations: 80 kB / 334.7 MB, free: 5.703 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.011, allocations: 119.9 kB / 334.8 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003227/0.01132, allocations: 0.5922 MB / 335.4 MB, free: 4.992 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003201/0.01164, allocations: 434.7 kB / 335.8 MB, free: 4.566 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.01307, allocations: 2.064 MB / 337.9 MB, free: 2.496 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.01308, allocations: 0 / 337.9 MB, free: 2.496 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.01308, allocations: 0 / 337.9 MB, free: 2.496 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.241e-05/0.01315, allocations: 0 / 337.9 MB, free: 2.496 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002725/0.01588, allocations: 2.062 MB / 339.9 MB, free: 400 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.01593, allocations: 11.98 kB / 339.9 MB, free: 388 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.874e-05/0.01601, allocations: 90.7 kB / 340 MB, free: 288 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.0162, allocations: 195.7 kB / 340.2 MB, free: 92 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001605/0.01781, allocations: 1.454 MB / 341.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.01791, allocations: 96.95 kB / 341.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.239e-05/0.01798, allocations: 44.38 kB / 341.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007701/0.01875, allocations: 0.8441 MB / 342.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.01876, allocations: 0 / 342.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.01879, allocations: 28 kB / 342.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.0188, allocations: 12 kB / 342.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004287/0.01923, allocations: 343.7 kB / 343 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.02198, allocations: 2.927 MB / 346 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00061/0.02259, allocations: 365.1 kB / 346.3 MB, free: 9.727 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002893/0.02288, allocations: 176.6 kB / 346.5 MB, free: 9.551 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.02291, allocations: 4 kB / 346.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.02294, allocations: 38.56 kB / 346.5 MB, free: 9.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.933e-06/0.02294, allocations: 0 / 346.5 MB, free: 9.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001026/0.02396, allocations: 0.6259 MB / 347.2 MB, free: 8.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.02404, allocations: 213.6 kB / 347.4 MB, free: 8.605 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/0.02624, allocations: 2.904 MB / 350.3 MB, free: 5.656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.02626, allocations: 29.7 kB / 350.3 MB, free: 5.621 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004429/0.02671, allocations: 0.79 MB / 351.1 MB, free: 4.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.02675, allocations: 75.31 kB / 351.2 MB, free: 4.746 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.811e-05/0.02683, allocations: 77.97 kB / 351.2 MB, free: 4.664 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.098e-05/0.0269, allocations: 318 kB / 351.5 MB, free: 4.348 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.02707, allocations: 120.6 kB / 351.7 MB, free: 4.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.02735, allocations: 447.1 kB / 352.1 MB, free: 3.688 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.02773, allocations: 362.9 kB / 352.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.02774, allocations: 0 / 352.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006387/0.02838, allocations: 0.5516 MB / 353 MB, free: 2.719 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.02839, allocations: 12.44 kB / 353 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.0284, allocations: 8 kB / 353 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.0286, allocations: 68.73 kB / 353.1 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.02875, allocations: 67.91 kB / 353.2 MB, free: 2.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.02977, allocations: 1.613 MB / 354.8 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.03, allocations: 59.7 kB / 354.8 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.03002, allocations: 16 kB / 354.8 MB, free: 0.7656 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0004343/0.03046, allocations: 0.5826 MB / 355.4 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.03057, allocations: 170.9 kB / 355.6 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006335/0.0312, allocations: 0.5065 MB / 356.1 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.0312, allocations: 3.984 kB / 356.1 MB, free: 15.49 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.03121, allocations: 3.938 kB / 356.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.03121, allocations: 4 kB / 356.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.03265, allocations: 1.49 MB / 357.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.03266, allocations: 0 / 357.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.03277, allocations: 51.84 kB / 357.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001059/0.03288, allocations: 48.86 kB / 357.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.03289, allocations: 7.938 kB / 357.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008438/0.03374, allocations: 1.562 MB / 359.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.03374, allocations: 4.094 kB / 359.3 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007459/0.03449, allocations: 0.7079 MB / 360 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003379/0.03482, allocations: 326.6 kB / 360.3 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/0.03489, allocations: 12 kB / 360.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.0351, allocations: 43.95 kB / 360.4 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.03516, allocations: 27.89 kB / 360.4 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.03518, allocations: 16 kB / 360.4 MB, free: 10.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00161/0.03679, allocations: 2.071 MB / 362.5 MB, free: 8.887 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.1e-08/0.03679, allocations: 0 / 362.5 MB, free: 8.887 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004623/0.03725, allocations: 207.7 kB / 362.7 MB, free: 8.684 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001539/0.03879, allocations: 1.523 MB / 364.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006273/0.03941, allocations: 438.3 kB / 364.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.03942, allocations: 4 kB / 364.6 MB, free: 6.812 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002713/0.03969, allocations: 258.5 kB / 364.9 MB, free: 6.547 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.04032, allocations: 234.1 kB / 365.1 MB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02502/0.06534, allocations: 17.73 MB / 382.8 MB, free: 4.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006904/0.06603, allocations: 0.7668 MB / 383.6 MB, free: 3.445 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004553/0.06649, allocations: 246.8 kB / 383.8 MB, free: 3.199 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004835/0.06697, allocations: 0.5745 MB / 384.4 MB, free: 2.625 MB / 346.7 MB Notification: Performance of SimCode: time 1.323e-06/0.06697, allocations: 4 kB / 384.4 MB, free: 2.621 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04901/0.116, allocations: 34.66 MB / 419.1 MB, free: 100 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.747/8.863, allocations: 4 kB / 419.1 MB, free: 96 kB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.247713292948902]