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.0007743/0.0007743, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0008153/0.0008153, allocations: 148.6 kB / 24.9 MB, free: 8.727 MB / 18.57 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 0.9286/0.9286, allocations: 173.4 MB / 201.5 MB, free: 8.727 MB / 186.7 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_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 1.483e-06/1.483e-06, allocations: 0 / 268.4 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.734e-05/1.883e-05, allocations: 6.109 kB / 268.4 MB, free: 6.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006119/0.006137, allocations: 5.291 MB / 273.7 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002508/0.008645, allocations: 1.733 MB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.008857, allocations: 19.88 kB / 275.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006852/0.009542, allocations: 0.5134 MB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004052/0.009947, allocations: 361.9 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000466/0.01041, allocations: 375.3 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006511/0.01106, allocations: 0.9156 MB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002732/0.01134, allocations: 223.3 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004024/0.01174, allocations: 0.5223 MB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.01212, allocations: 351.1 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.486e-05/0.01219, allocations: 80 kB / 278.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.01232, allocations: 119.9 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00029/0.01261, allocations: 0.5961 MB / 279.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002695/0.01288, allocations: 430.7 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007901/0.01367, allocations: 1.195 MB / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.01368, allocations: 0 / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.01368, allocations: 0 / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.01369, allocations: 0 / 281.1 MB, free: 9.297 MB / 266.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.001513/0.01521, allocations: 1.908 MB / 283 MB, free: 7.355 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.644e-05/0.01523, allocations: 8.031 kB / 283 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.01539, allocations: 148.8 kB / 283.2 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007123/0.0161, allocations: 0.814 MB / 284 MB, free: 6.359 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.764e-05/0.01617, allocations: 96.97 kB / 284.1 MB, free: 6.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.01622, allocations: 51.94 kB / 284.2 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.01668, allocations: 0.6796 MB / 284.8 MB, free: 5.406 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.01669, allocations: 4 kB / 284.8 MB, free: 5.402 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.01672, allocations: 27.94 kB / 284.9 MB, free: 5.375 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.01673, allocations: 12 kB / 284.9 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.01687, allocations: 114.9 kB / 285 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.01856, allocations: 1.884 MB / 286.9 MB, free: 3.293 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.01885, allocations: 193.4 kB / 287.1 MB, free: 3.098 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.01896, allocations: 85.17 kB / 287.1 MB, free: 3.012 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.01898, allocations: 7.938 kB / 287.1 MB, free: 3.004 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.019, allocations: 38.56 kB / 287.2 MB, free: 2.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.01901, allocations: 0 / 287.2 MB, free: 2.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004729/0.01948, allocations: 286.2 kB / 287.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.01954, allocations: 209.6 kB / 287.7 MB, free: 2.414 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.02074, allocations: 1.675 MB / 289.3 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.02077, allocations: 33.7 kB / 289.4 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.02097, allocations: 448.1 kB / 289.8 MB, free: 212 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.02102, allocations: 83.3 kB / 289.9 MB, free: 128 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.02108, allocations: 73.95 kB / 290 MB, free: 48 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.09901/0.1201, allocations: 321.1 kB / 290.3 MB, free: 28.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.1202, allocations: 29.16 kB / 290.3 MB, free: 28.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.1204, allocations: 346.7 kB / 290.7 MB, free: 27.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.1206, allocations: 206.4 kB / 290.9 MB, free: 27.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1206, allocations: 1.812 kB / 290.9 MB, free: 27.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005457/0.1211, allocations: 287.7 kB / 291.1 MB, free: 27.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1211, allocations: 6.875 kB / 291.1 MB, free: 27.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.1211, allocations: 4.656 kB / 291.1 MB, free: 27.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.1213, allocations: 39.09 kB / 291.2 MB, free: 27.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.1215, allocations: 67.95 kB / 291.3 MB, free: 27.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007121/0.1222, allocations: 1.406 MB / 292.7 MB, free: 26.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.1225, allocations: 54 kB / 292.7 MB, free: 26.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.887e-05/0.1225, allocations: 12.59 kB / 292.7 MB, free: 26.55 MB / 266.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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.00028/0.1228, allocations: 133.6 kB / 292.9 MB, free: 26.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.1229, allocations: 90.19 kB / 292.9 MB, free: 26.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004135/0.1233, allocations: 281.4 kB / 293.2 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1233, allocations: 13.08 kB / 293.2 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.1233, allocations: 0 / 293.2 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1233, allocations: 2.391 kB / 293.2 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.1245, allocations: 0.8317 MB / 294.1 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1245, allocations: 3.781 kB / 294.1 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.1246, allocations: 38.53 kB / 294.1 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.023e-05/0.1247, allocations: 28.39 kB / 294.1 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1247, allocations: 5.688 kB / 294.1 MB, free: 26.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005471/0.1253, allocations: 1.377 MB / 295.5 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1253, allocations: 0 / 295.5 MB, free: 24.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004471/0.1257, allocations: 378 kB / 295.9 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.126, allocations: 221.1 kB / 296.1 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.1261, allocations: 6 kB / 296.1 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.1264, allocations: 33.03 kB / 296.1 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.924e-05/0.1264, allocations: 27.89 kB / 296.2 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.1264, allocations: 10.03 kB / 296.2 MB, free: 24.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001131/0.1276, allocations: 0.9121 MB / 297.1 MB, free: 24.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1276, allocations: 3.562 kB / 297.1 MB, free: 24.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006295/0.1282, allocations: 201.9 kB / 297.3 MB, free: 24.61 MB / 266.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.00102/0.1292, allocations: 436.6 kB / 297.7 MB, free: 24.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.1296, allocations: 281.2 kB / 298 MB, free: 24.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.306e-05/0.1296, allocations: 18.62 kB / 298 MB, free: 24.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.1298, allocations: 185.9 kB / 298.2 MB, free: 24.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006341/0.1304, allocations: 208.3 kB / 298.4 MB, free: 24.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.1337, allocations: 2.402 MB / 300.8 MB, free: 23.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.134, allocations: 349.2 kB / 301.1 MB, free: 23.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000325/0.1344, allocations: 144.1 kB / 301.3 MB, free: 23.03 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004515/0.1348, allocations: 256.7 kB / 301.5 MB, free: 22.98 MB / 266.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1348, allocations: 0 / 301.5 MB, free: 22.98 MB / 266.7 MB Notification: Performance of Templates: time 0.01826/0.1531, allocations: 16.47 MB / 318 MB, free: 11.09 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.886473478283733]