Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 75.19 kB / 21.24 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002112/0.002112, allocations: 153.7 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 173.4 MB / 201.1 MB, free: 12.99 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 46.73 kB / 319.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09619, allocations: 52.16 MB / 371.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007685/0.1039, allocations: 5.372 MB / 376.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003776/0.1076, allocations: 2.019 MB / 378.9 MB, free: 0 / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004202/0.1081, allocations: 19.92 kB / 379 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.1094, allocations: 0.6146 MB / 379.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007789/0.1102, allocations: 413.8 kB / 380 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008449/0.1111, allocations: 407.2 kB / 380.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001422/0.1125, allocations: 1.306 MB / 381.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005068/0.113, allocations: 286.3 kB / 382 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005742/0.1136, allocations: 0.5023 MB / 382.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007743/0.1143, allocations: 0.5759 MB / 383 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.1145, allocations: 116 kB / 383.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003157/0.1148, allocations: 175.9 kB / 383.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005609/0.1154, allocations: 0.6583 MB / 384 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006755/0.1161, allocations: 0.6602 MB / 384.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002653/0.1187, allocations: 2.658 MB / 387.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1187, allocations: 0 / 387.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1187, allocations: 0 / 387.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.168e-05/0.1187, allocations: 4 kB / 387.3 MB, free: 7.594 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.004137/0.1229, allocations: 2.354 MB / 389.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.1229, allocations: 8.922 kB / 389.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003193/0.1232, allocations: 235.5 kB / 389.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/0.1259, allocations: 1.628 MB / 391.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.1261, allocations: 185.8 kB / 391.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.1262, allocations: 60 kB / 391.8 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.1279, allocations: 1.181 MB / 392.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.1279, allocations: 3.984 kB / 393 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.901e-05/0.128, allocations: 28 kB / 393 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.128, allocations: 16 kB / 393 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.1291, allocations: 0.5477 MB / 393.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00556/0.1346, allocations: 3.499 MB / 397 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.136, allocations: 0.5002 MB / 397.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007863/0.1368, allocations: 338.1 kB / 397.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.1368, allocations: 4.281 kB / 397.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.1368, allocations: 42.83 kB / 397.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.783e-06/0.1368, allocations: 0 / 397.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002353/0.1392, allocations: 0.8661 MB / 398.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001588/0.1393, allocations: 269 kB / 399 MB, free: 11.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00398/0.1433, allocations: 3.096 MB / 402.1 MB, free: 8.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.968e-05/0.1434, allocations: 37.7 kB / 402.2 MB, free: 8.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008436/0.1442, allocations: 0.8727 MB / 403.1 MB, free: 7.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.1443, allocations: 130.8 kB / 403.2 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1445, allocations: 98.14 kB / 403.3 MB, free: 7.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1446, allocations: 322 kB / 403.6 MB, free: 6.781 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004785/0.1451, allocations: 208.9 kB / 403.8 MB, free: 6.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007521/0.1458, allocations: 0.585 MB / 404.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.1469, allocations: 0.5206 MB / 404.9 MB, free: 5.297 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1469, allocations: 0 / 404.9 MB, free: 5.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001533/0.1484, allocations: 0.774 MB / 405.7 MB, free: 4.512 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1484, allocations: 7.938 kB / 405.7 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.1484, allocations: 4 kB / 405.7 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.1487, allocations: 72.75 kB / 405.8 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004951/0.1492, allocations: 120 kB / 405.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.151, allocations: 1.652 MB / 407.5 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005332/0.1516, allocations: 71.73 kB / 407.6 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.1516, allocations: 16.12 kB / 407.6 MB, free: 2.473 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.0008233/0.1524, allocations: 0.6537 MB / 408.3 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002609/0.1527, allocations: 194.8 kB / 408.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003018/0.153, allocations: 213.9 kB / 408.7 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.153, allocations: 0 / 408.7 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.153, allocations: 4 kB / 408.7 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.153, allocations: 3.984 kB / 408.7 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/0.1565, allocations: 1.828 MB / 410.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1565, allocations: 0 / 410.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004234/0.1569, allocations: 84 kB / 410.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001923/0.1571, allocations: 56.81 kB / 410.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/0.1572, allocations: 12 kB / 410.6 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.1588, allocations: 1.613 MB / 412.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1588, allocations: 4.031 kB / 412.3 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.1608, allocations: 0.9721 MB / 413.2 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009559/0.1617, allocations: 370.7 kB / 413.6 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.1619, allocations: 15.94 kB / 413.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.1625, allocations: 55.94 kB / 413.7 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.1626, allocations: 43.92 kB / 413.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.1627, allocations: 12 kB / 413.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003221/0.1659, allocations: 2.203 MB / 415.9 MB, free: 9.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1659, allocations: 0 / 415.9 MB, free: 9.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008791/0.1668, allocations: 259.6 kB / 416.2 MB, free: 9.688 MB / 382.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.00193/0.1687, allocations: 0.4927 MB / 416.7 MB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.1702, allocations: 0.5974 MB / 417.3 MB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.1702, allocations: 4.875 kB / 417.3 MB, free: 8.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00071/0.1709, allocations: 351.3 kB / 417.6 MB, free: 8.434 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.172, allocations: 253.5 kB / 417.9 MB, free: 8.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006916/0.1789, allocations: 3.692 MB / 421.6 MB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.1802, allocations: 0.904 MB / 422.5 MB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006663/0.1808, allocations: 290.8 kB / 422.7 MB, free: 3.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.1811, allocations: 88.5 kB / 422.8 MB, free: 3.137 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.1811, allocations: 0 / 422.8 MB, free: 3.137 MB / 382.1 MB Notification: Performance of Templates: time 0.03814/0.2193, allocations: 19.17 MB / 442 MB, free: 128 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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: 4.935859550954774]