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.001763/0.001763, allocations: 113 kB / 18.45 MB, free: 4.602 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.002077/0.002077, allocations: 190.9 kB / 21.4 MB, free: 1.664 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.416/1.416, allocations: 225.6 MB / 249.8 MB, free: 3.621 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.001506/0.001506, allocations: 55.91 kB / 366.8 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.09821, allocations: 52.14 MB / 418.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.00749/0.1057, allocations: 5.53 MB / 424.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003318/0.109, allocations: 1.719 MB / 426.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.1093, allocations: 15.94 kB / 426.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.1104, allocations: 0.5174 MB / 426.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00062/0.111, allocations: 350.1 kB / 427.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000774/0.1118, allocations: 370.4 kB / 427.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000998/0.1128, allocations: 0.8964 MB / 428.3 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.1132, allocations: 236.9 kB / 428.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004095/0.1136, allocations: 370.6 kB / 428.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005564/0.1142, allocations: 466.3 kB / 429.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.1143, allocations: 80 kB / 429.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.1145, allocations: 112 kB / 429.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005023/0.115, allocations: 0.5882 MB / 430.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006941/0.1157, allocations: 0.7415 MB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002178/0.1179, allocations: 2.121 MB / 433 MB, free: 14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1179, allocations: 3.938 kB / 433 MB, free: 13.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1179, allocations: 4 kB / 433 MB, free: 13.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.1179, allocations: 0 / 433 MB, free: 13.99 MB / 366.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.003311/0.1212, allocations: 2.125 MB / 435.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1213, allocations: 15.89 kB / 435.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002851/0.1215, allocations: 199.6 kB / 435.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002303/0.1238, allocations: 1.515 MB / 436.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-05/0.1239, allocations: 66.69 kB / 436.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.752e-05/0.124, allocations: 48 kB / 437 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.1252, allocations: 0.5854 MB / 437.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1252, allocations: 0 / 437.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.196e-05/0.1253, allocations: 20 kB / 437.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.1253, allocations: 12 kB / 437.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007882/0.1261, allocations: 343.7 kB / 437.9 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004771/0.1308, allocations: 3.246 MB / 441.2 MB, free: 5.559 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.132, allocations: 360.6 kB / 441.5 MB, free: 5.199 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005113/0.1325, allocations: 172.7 kB / 441.7 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.1325, allocations: 4 kB / 441.7 MB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.1326, allocations: 38.56 kB / 441.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.1326, allocations: 0 / 441.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002088/0.1347, allocations: 0.6989 MB / 442.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.1348, allocations: 213.6 kB / 442.6 MB, free: 3.992 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/0.139, allocations: 2.892 MB / 445.5 MB, free: 1.055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.139, allocations: 29.7 kB / 445.6 MB, free: 1.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008264/0.1398, allocations: 0.7938 MB / 446.4 MB, free: 220 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.943e-05/0.1399, allocations: 75.34 kB / 446.4 MB, free: 144 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.1401, allocations: 70.02 kB / 446.5 MB, free: 68 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.1741/0.3141, allocations: 318 kB / 446.8 MB, free: 29.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004451/0.3146, allocations: 118.4 kB / 446.9 MB, free: 29.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000374/0.315, allocations: 291 kB / 447.2 MB, free: 29.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006313/0.3156, allocations: 361 kB / 447.6 MB, free: 29.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.3156, allocations: 2.938 kB / 447.6 MB, free: 29.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001371/0.317, allocations: 0.5685 MB / 448.1 MB, free: 29.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.317, allocations: 8.047 kB / 448.1 MB, free: 29.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.317, allocations: 7.219 kB / 448.1 MB, free: 29.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.3173, allocations: 54.8 kB / 448.2 MB, free: 29.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.3175, allocations: 75.02 kB / 448.3 MB, free: 29.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.3188, allocations: 1.727 MB / 450 MB, free: 27.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005197/0.3193, allocations: 62.23 kB / 450.1 MB, free: 27.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.3194, allocations: 13.53 kB / 450.1 MB, free: 27.55 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.0006967/0.32, allocations: 0.5767 MB / 450.7 MB, free: 27.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002083/0.3203, allocations: 172.1 kB / 450.8 MB, free: 27.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.3214, allocations: 0.5126 MB / 451.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.3214, allocations: 3.531 kB / 451.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.3214, allocations: 0.6562 kB / 451.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3214, allocations: 3.703 kB / 451.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002526/0.3239, allocations: 1.684 MB / 453 MB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3239, allocations: 2.625 kB / 453 MB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.3242, allocations: 45.05 kB / 453.1 MB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001649/0.3244, allocations: 50.86 kB / 453.1 MB, free: 26.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.3244, allocations: 10.02 kB / 453.1 MB, free: 26.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.3255, allocations: 1.679 MB / 454.8 MB, free: 25.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3255, allocations: 7.016 kB / 454.8 MB, free: 25.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.327, allocations: 0.7068 MB / 455.5 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005245/0.3275, allocations: 389.8 kB / 455.9 MB, free: 25.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.3276, allocations: 10.05 kB / 455.9 MB, free: 25.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/0.3281, allocations: 46.95 kB / 456 MB, free: 25.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.3282, allocations: 27.08 kB / 456 MB, free: 25.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.3282, allocations: 10.36 kB / 456 MB, free: 25.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002926/0.3311, allocations: 2.061 MB / 458.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3311, allocations: 1.094 kB / 458.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007932/0.3319, allocations: 207.7 kB / 458.3 MB, free: 24.7 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.001287/0.3332, allocations: 358 kB / 458.6 MB, free: 24.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.3343, allocations: 430.3 kB / 459 MB, free: 24.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3343, allocations: 1.25 kB / 459 MB, free: 24.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005283/0.3348, allocations: 267.3 kB / 459.3 MB, free: 24.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.3359, allocations: 228.3 kB / 459.5 MB, free: 24.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005457/0.3413, allocations: 3.205 MB / 462.7 MB, free: 22.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009269/0.3423, allocations: 1.352 MB / 464.1 MB, free: 21.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/0.3426, allocations: 80.55 kB / 464.2 MB, free: 21.88 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3426, allocations: 0 / 464.2 MB, free: 21.88 MB / 366.1 MB Notification: Performance of Templates: time 0.03204/0.3746, allocations: 24.85 MB / 489 MB, free: 6.008 MB / 366.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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.939033458009362]