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.001958/0.001958, allocations: 81.39 kB / 21.25 MB, free: 0.5469 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.002419/0.002419, allocations: 159.9 kB / 24.5 MB, free: 3.719 MB / 14.72 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 1.491/1.491, allocations: 177.1 MB / 204.7 MB, free: 8.977 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 67.09 kB / 325.5 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1427, allocations: 53.39 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01261/0.1553, allocations: 4.976 MB / 383.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005608/0.1609, allocations: 1.784 MB / 385.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006581/0.1616, allocations: 19.88 kB / 385.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.1635, allocations: 0.5058 MB / 386.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.1648, allocations: 394 kB / 386.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.1663, allocations: 374.7 kB / 386.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001887/0.1682, allocations: 0.9004 MB / 387.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006798/0.1688, allocations: 225.2 kB / 388.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00079/0.1696, allocations: 374.8 kB / 388.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009325/0.1706, allocations: 426.3 kB / 388.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.1707, allocations: 76 kB / 388.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00037/0.1711, allocations: 124 kB / 389 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009054/0.172, allocations: 0.5844 MB / 389.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000949/0.1729, allocations: 0.5551 MB / 390.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00381/0.1768, allocations: 2.14 MB / 392.3 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1768, allocations: 0 / 392.3 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1768, allocations: 0 / 392.3 MB, free: 2.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.145e-05/0.1768, allocations: 7.984 kB / 392.3 MB, free: 2.004 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.006571/0.1834, allocations: 2.077 MB / 394.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.1834, allocations: 15.92 kB / 394.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/0.1839, allocations: 195.7 kB / 394.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00435/0.1883, allocations: 1.459 MB / 396.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/0.1885, allocations: 92.72 kB / 396.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.1886, allocations: 48 kB / 396.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002074/0.1907, allocations: 0.8364 MB / 397 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.1907, allocations: 0 / 397 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-05/0.1908, allocations: 24 kB / 397.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.1908, allocations: 12 kB / 397.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.1921, allocations: 351.7 kB / 397.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007839/0.1999, allocations: 2.839 MB / 400.3 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.2018, allocations: 366 kB / 400.6 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007773/0.2026, allocations: 168.8 kB / 400.8 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.866e-05/0.2027, allocations: 3.938 kB / 400.8 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.152e-05/0.2027, allocations: 38.56 kB / 400.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 3.006e-06/0.2027, allocations: 0 / 400.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.003531/0.2062, allocations: 0.6248 MB / 401.4 MB, free: 8.566 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/0.2064, allocations: 205.6 kB / 401.6 MB, free: 8.316 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008476/0.2149, allocations: 2.873 MB / 404.5 MB, free: 5.395 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.215, allocations: 29.7 kB / 404.5 MB, free: 5.359 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/0.2166, allocations: 0.8052 MB / 405.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.2168, allocations: 75.39 kB / 405.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002473/0.217, allocations: 69.97 kB / 405.5 MB, free: 4.402 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.2172, allocations: 321.9 kB / 405.8 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005817/0.2178, allocations: 128.5 kB / 405.9 MB, free: 3.957 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000826/0.2186, allocations: 439.1 kB / 406.4 MB, free: 3.422 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.2198, allocations: 360.3 kB / 406.7 MB, free: 3.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.46e-05/0.2198, allocations: 4 kB / 406.7 MB, free: 3.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002631/0.2224, allocations: 0.5561 MB / 407.3 MB, free: 2.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.2224, allocations: 12.44 kB / 407.3 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.2225, allocations: 8 kB / 407.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004613/0.2229, allocations: 60.81 kB / 407.4 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005482/0.2235, allocations: 71.91 kB / 407.4 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002905/0.2264, allocations: 1.586 MB / 409 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.2274, allocations: 63.7 kB / 409.1 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/0.2275, allocations: 12 kB / 409.1 MB, free: 0.5352 MB / 366.1 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.001468/0.229, allocations: 0.5797 MB / 409.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006948/0.2297, allocations: 170.9 kB / 409.8 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002488/0.2322, allocations: 0.5059 MB / 410.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.2322, allocations: 4 kB / 410.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2322, allocations: 0 / 410.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.2322, allocations: 3.984 kB / 410.3 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005104/0.2373, allocations: 1.423 MB / 411.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.2373, allocations: 0 / 411.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003805/0.2377, allocations: 43.91 kB / 411.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/0.238, allocations: 52.84 kB / 411.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.238, allocations: 8 kB / 411.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.2407, allocations: 1.531 MB / 413.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.2407, allocations: 8.125 kB / 413.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/0.2436, allocations: 0.7139 MB / 414.1 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.245, allocations: 310.9 kB / 414.4 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004289/0.2454, allocations: 11.94 kB / 414.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009715/0.2464, allocations: 47.95 kB / 414.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.2465, allocations: 31.94 kB / 414.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.593e-05/0.2466, allocations: 8 kB / 414.5 MB, free: 10.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.006247/0.2528, allocations: 2.046 MB / 416.6 MB, free: 8.828 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2528, allocations: 3.938 kB / 416.6 MB, free: 8.824 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002065/0.2549, allocations: 203.7 kB / 416.8 MB, free: 8.625 MB / 382.1 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.002344/0.2572, allocations: 366.7 kB / 417.1 MB, free: 8.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.2591, allocations: 426.7 kB / 417.5 MB, free: 7.949 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.2591, allocations: 0 / 417.5 MB, free: 7.949 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009323/0.2601, allocations: 271.2 kB / 417.8 MB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/0.2622, allocations: 201.8 kB / 418 MB, free: 7.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009095/0.2713, allocations: 3.037 MB / 421 MB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/0.2731, allocations: 0.7705 MB / 421.8 MB, free: 3.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001071/0.2742, allocations: 234.2 kB / 422 MB, free: 3.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005288/0.2747, allocations: 80.5 kB / 422.1 MB, free: 3.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.522e-06/0.2747, allocations: 0 / 422.1 MB, free: 3.27 MB / 382.1 MB Notification: Performance of Templates: time 0.05222/0.3269, allocations: 15.61 MB / 437.7 MB, free: 3.758 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/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: 5.1564596720272675]