Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001415/0.001415, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 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.001375/0.001375, allocations: 161.4 kB / 24.49 MB, free: 3.461 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.411/1.411, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 MB " [Timeout remaining time 178] 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 46.58 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09038/0.09189, allocations: 52.16 MB / 371.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007094/0.09899, allocations: 4.92 MB / 376.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002758/0.1017, allocations: 1.633 MB / 378.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.102, allocations: 23.88 kB / 378.1 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.103, allocations: 0.5019 MB / 378.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006055/0.1036, allocations: 354.2 kB / 379 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007515/0.1044, allocations: 375.2 kB / 379.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009961/0.1054, allocations: 0.9003 MB / 380.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003953/0.1058, allocations: 229.2 kB / 380.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004071/0.1062, allocations: 366.8 kB / 380.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005294/0.1067, allocations: 434.2 kB / 381.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.1068, allocations: 76 kB / 381.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.107, allocations: 116 kB / 381.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005004/0.1075, allocations: 0.596 MB / 382 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005548/0.1081, allocations: 0.5434 MB / 382.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002102/0.1102, allocations: 2.14 MB / 384.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1102, allocations: 7.984 kB / 384.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1102, allocations: 0 / 384.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.1102, allocations: 0 / 384.7 MB, free: 10.13 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.003312/0.1135, allocations: 2.054 MB / 386.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1135, allocations: 12.03 kB / 386.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002827/0.1138, allocations: 195.7 kB / 387 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002329/0.1162, allocations: 1.451 MB / 388.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.1163, allocations: 88.41 kB / 388.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.571e-05/0.1163, allocations: 51.94 kB / 388.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.1176, allocations: 0.8403 MB / 389.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.1176, allocations: 3.938 kB / 389.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.69e-05/0.1177, allocations: 16 kB / 389.4 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.1177, allocations: 16 kB / 389.4 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007652/0.1184, allocations: 347.8 kB / 389.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004568/0.123, allocations: 2.831 MB / 392.6 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.1242, allocations: 354.5 kB / 393 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000486/0.1247, allocations: 168.8 kB / 393.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.1247, allocations: 8 kB / 393.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.1247, allocations: 42.48 kB / 393.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.683e-06/0.1247, allocations: 0 / 393.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001926/0.1267, allocations: 0.6146 MB / 393.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.1268, allocations: 213.6 kB / 394 MB, free: 492 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/0.1305, allocations: 2.856 MB / 396.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.1305, allocations: 29.7 kB / 396.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007968/0.1313, allocations: 0.7973 MB / 397.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.078e-05/0.1314, allocations: 79.38 kB / 397.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.1315, allocations: 65.98 kB / 397.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1317, allocations: 326 kB / 398.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.132, allocations: 116.6 kB / 398.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005851/0.1326, allocations: 443.1 kB / 398.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007824/0.1334, allocations: 365.2 kB / 399 MB, free: 11.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.1334, allocations: 4 kB / 399 MB, free: 11.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001262/0.1347, allocations: 0.5635 MB / 399.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.1347, allocations: 10.5 kB / 399.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1347, allocations: 4 kB / 399.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/0.135, allocations: 56.7 kB / 399.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003119/0.1353, allocations: 80.08 kB / 399.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/0.1371, allocations: 1.594 MB / 401.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.1375, allocations: 63.8 kB / 401.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.1376, allocations: 16 kB / 401.4 MB, free: 8.707 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.0007934/0.1384, allocations: 0.5718 MB / 402 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002285/0.1386, allocations: 166.9 kB / 402.2 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00129/0.1399, allocations: 0.5128 MB / 402.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1399, allocations: 0 / 402.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.1399, allocations: 0 / 402.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1399, allocations: 4 kB / 402.7 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.1427, allocations: 1.422 MB / 404.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1427, allocations: 0 / 404.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.143, allocations: 52 kB / 404.2 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001607/0.1431, allocations: 48.77 kB / 404.2 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.1431, allocations: 4 kB / 404.2 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.1447, allocations: 1.539 MB / 405.7 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.1447, allocations: 3.938 kB / 405.8 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.1463, allocations: 0.7078 MB / 406.5 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006489/0.1469, allocations: 310.8 kB / 406.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.147, allocations: 0 / 406.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000441/0.1475, allocations: 51.95 kB / 406.8 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.294e-05/0.1475, allocations: 39.88 kB / 406.9 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.1476, allocations: 4 kB / 406.9 MB, free: 3.086 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002816/0.1504, allocations: 2.031 MB / 408.9 MB, free: 1.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1504, allocations: 0 / 408.9 MB, free: 1.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007318/0.1511, allocations: 207.6 kB / 409.1 MB, free: 0.8281 MB / 366.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.001406/0.1525, allocations: 385.1 kB / 409.5 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.1536, allocations: 429.3 kB / 409.9 MB, free: 168 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1536, allocations: 0 / 409.9 MB, free: 168 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005644/0.1542, allocations: 263.2 kB / 410.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009183/0.1551, allocations: 202.2 kB / 410.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.1604, allocations: 3.088 MB / 413.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.1615, allocations: 0.7667 MB / 414.2 MB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004694/0.1619, allocations: 242.2 kB / 414.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.1621, allocations: 76.5 kB / 414.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1621, allocations: 0 / 414.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of Templates: time 0.03037/0.1925, allocations: 15.61 MB / 430.1 MB, free: 11.96 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.782300478895195]