Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 74.88 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 161.8 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 177.2 MB / 204.9 MB, free: 9.008 MB / 190.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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.27 kB / 325.5 MB, free: 276 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09235, allocations: 53.35 MB / 378.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006913/0.09926, allocations: 4.945 MB / 383.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003255/0.1025, allocations: 1.804 MB / 385.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003398/0.1029, allocations: 19.88 kB / 385.7 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.1039, allocations: 0.498 MB / 386.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000739/0.1047, allocations: 398 kB / 386.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007965/0.1055, allocations: 375.1 kB / 386.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.1065, allocations: 0.8965 MB / 387.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004107/0.1069, allocations: 225.3 kB / 388 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004297/0.1073, allocations: 374.7 kB / 388.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.1079, allocations: 422.3 kB / 388.8 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.108, allocations: 83.94 kB / 388.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.1082, allocations: 120 kB / 389 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005054/0.1087, allocations: 0.596 MB / 389.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005476/0.1093, allocations: 0.5434 MB / 390.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002152/0.1114, allocations: 2.148 MB / 392.3 MB, free: 2.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1114, allocations: 0 / 392.3 MB, free: 2.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1114, allocations: 0 / 392.3 MB, free: 2.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.088e-05/0.1114, allocations: 7.938 kB / 392.3 MB, free: 2.215 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.003481/0.1149, allocations: 2.074 MB / 394.4 MB, free: 104 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.115, allocations: 8.031 kB / 394.4 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.1153, allocations: 195.7 kB / 394.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002382/0.1177, allocations: 1.463 MB / 396 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.1178, allocations: 92.34 kB / 396.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.438e-05/0.1179, allocations: 48 kB / 396.2 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.1191, allocations: 0.8403 MB / 397 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.1191, allocations: 0 / 397 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.1192, allocations: 24 kB / 397 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1192, allocations: 12 kB / 397 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007754/0.12, allocations: 347.7 kB / 397.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004415/0.1244, allocations: 2.839 MB / 400.2 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.1256, allocations: 361.1 kB / 400.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00049/0.1261, allocations: 176.8 kB / 400.8 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.1261, allocations: 4 kB / 400.8 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.1261, allocations: 34.56 kB / 400.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.1261, allocations: 0 / 400.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001918/0.128, allocations: 0.6224 MB / 401.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.1282, allocations: 209.6 kB / 401.6 MB, free: 8.535 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004037/0.1322, allocations: 2.869 MB / 404.5 MB, free: 5.617 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.039e-05/0.1323, allocations: 33.7 kB / 404.5 MB, free: 5.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008109/0.1331, allocations: 0.7974 MB / 405.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.876e-05/0.1331, allocations: 75.36 kB / 405.4 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.1333, allocations: 73.98 kB / 405.5 MB, free: 4.625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1334, allocations: 322 kB / 405.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003799/0.1338, allocations: 124.6 kB / 405.9 MB, free: 4.184 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005754/0.1344, allocations: 446.9 kB / 406.3 MB, free: 3.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007796/0.1352, allocations: 361.3 kB / 406.7 MB, free: 3.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1352, allocations: 0 / 406.7 MB, free: 3.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001312/0.1365, allocations: 0.5555 MB / 407.2 MB, free: 2.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1365, allocations: 8 kB / 407.3 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.1365, allocations: 8.375 kB / 407.3 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002835/0.1368, allocations: 60.77 kB / 407.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.1371, allocations: 75.83 kB / 407.4 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.1389, allocations: 1.586 MB / 409 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.1394, allocations: 59.7 kB / 409 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.1394, allocations: 16 kB / 409.1 MB, free: 0.7578 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.0007916/0.1402, allocations: 0.5796 MB / 409.6 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.1405, allocations: 171.1 kB / 409.8 MB, free: 16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.1418, allocations: 0.5166 MB / 410.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1418, allocations: 0 / 410.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.1418, allocations: 4 kB / 410.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1418, allocations: 0 / 410.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.1448, allocations: 1.419 MB / 411.7 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1448, allocations: 4 kB / 411.7 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.1451, allocations: 43.91 kB / 411.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001756/0.1452, allocations: 48.86 kB / 411.8 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.1453, allocations: 11.94 kB / 411.8 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.1468, allocations: 1.539 MB / 413.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1468, allocations: 3.938 kB / 413.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.1485, allocations: 0.704 MB / 414.1 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007436/0.1492, allocations: 314.7 kB / 414.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.1494, allocations: 12 kB / 414.4 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.1499, allocations: 39.95 kB / 414.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.15, allocations: 35.94 kB / 414.5 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.1501, allocations: 4.188 kB / 414.5 MB, free: 11.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003387/0.1535, allocations: 2.047 MB / 416.5 MB, free: 9.047 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1535, allocations: 0 / 416.5 MB, free: 9.047 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009412/0.1544, allocations: 199.7 kB / 416.7 MB, free: 8.852 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.001471/0.1559, allocations: 389.2 kB / 417.1 MB, free: 8.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.157, allocations: 425.7 kB / 417.5 MB, free: 8.188 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.157, allocations: 0 / 417.5 MB, free: 8.188 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.1576, allocations: 277.7 kB / 417.8 MB, free: 7.906 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.1587, allocations: 198.8 kB / 418 MB, free: 7.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005698/0.1644, allocations: 3.037 MB / 421 MB, free: 4.633 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.1655, allocations: 0.7627 MB / 421.8 MB, free: 3.832 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006277/0.1661, allocations: 250.1 kB / 422 MB, free: 3.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/0.1664, allocations: 76.5 kB / 422.1 MB, free: 3.504 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1664, allocations: 3.938 kB / 422.1 MB, free: 3.5 MB / 382.1 MB Notification: Performance of Templates: time 0.03249/0.1989, allocations: 15.61 MB / 437.7 MB, free: 4.008 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 4.810109633952379]