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.00167/0.00167, allocations: 123.5 kB / 18.41 MB, free: 4.684 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.001752/0.001752, allocations: 192.3 kB / 21.35 MB, free: 1.75 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.432/1.432, allocations: 222.9 MB / 247 MB, free: 4.34 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_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.001556/0.001556, allocations: 55.92 kB / 358.7 MB, free: 8.582 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.1009, allocations: 49.43 MB / 408.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007834/0.1088, allocations: 6.009 MB / 414.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003579/0.1124, allocations: 2.143 MB / 416.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003441/0.1128, allocations: 15.94 kB / 416.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.1141, allocations: 0.6225 MB / 416.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007125/0.1149, allocations: 405.8 kB / 417.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008344/0.1157, allocations: 395.1 kB / 417.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001499/0.1173, allocations: 1.321 MB / 419 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006897/0.118, allocations: 465.8 kB / 419.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006016/0.1186, allocations: 0.4945 MB / 419.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006935/0.1193, allocations: 0.5838 MB / 420.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.1195, allocations: 116 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003313/0.1198, allocations: 176 kB / 420.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005793/0.1204, allocations: 0.6544 MB / 421.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008922/0.1213, allocations: 0.8777 MB / 422.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002741/0.124, allocations: 2.634 MB / 425 MB, free: 6.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1241, allocations: 4 kB / 425 MB, free: 6.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1241, allocations: 3.938 kB / 425 MB, free: 6.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.677e-05/0.1241, allocations: 0 / 425 MB, free: 6.141 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.003903/0.128, allocations: 2.43 MB / 427.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1281, allocations: 11.97 kB / 427.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000333/0.1284, allocations: 219.5 kB / 427.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002456/0.1309, allocations: 1.697 MB / 429.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.131, allocations: 116.7 kB / 429.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.741e-05/0.1311, allocations: 60 kB / 429.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.1326, allocations: 0.8142 MB / 430.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.1326, allocations: 0 / 430.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.1327, allocations: 28 kB / 430.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.1327, allocations: 19.94 kB / 430.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.1338, allocations: 0.5477 MB / 430.9 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1862/0.32, allocations: 3.991 MB / 434.9 MB, free: 21.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.3214, allocations: 0.5336 MB / 435.4 MB, free: 21.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006827/0.3221, allocations: 373.8 kB / 435.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.3221, allocations: 3.438 kB / 435.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.3222, allocations: 40.83 kB / 435.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/0.3222, allocations: 0 / 435.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002401/0.3246, allocations: 0.9448 MB / 436.8 MB, free: 20.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/0.3246, allocations: 275.2 kB / 437.1 MB, free: 20.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003965/0.3286, allocations: 3.143 MB / 440.2 MB, free: 20.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.883e-05/0.3287, allocations: 37.03 kB / 440.2 MB, free: 20.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006567/0.3294, allocations: 0.8595 MB / 441.1 MB, free: 20.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.411e-05/0.3295, allocations: 129.6 kB / 441.2 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3296, allocations: 96.27 kB / 441.3 MB, free: 19.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.166e-05/0.3297, allocations: 324.3 kB / 441.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004505/0.3301, allocations: 210.3 kB / 441.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000496/0.3307, allocations: 395 kB / 442.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008327/0.3315, allocations: 0.5213 MB / 442.7 MB, free: 19.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3315, allocations: 1.375 kB / 442.7 MB, free: 19.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001502/0.333, allocations: 0.7847 MB / 443.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.333, allocations: 6.406 kB / 443.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3331, allocations: 7 kB / 443.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002776/0.3333, allocations: 64.64 kB / 443.6 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.3338, allocations: 117.7 kB / 443.7 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.3352, allocations: 1.8 MB / 445.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/0.3358, allocations: 74.33 kB / 445.6 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.3359, allocations: 21.53 kB / 445.6 MB, free: 17.41 MB / 350.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.0008506/0.3367, allocations: 0.6641 MB / 446.3 MB, free: 17.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.3369, allocations: 192.1 kB / 446.5 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.3372, allocations: 215.3 kB / 446.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3372, allocations: 3.719 kB / 446.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3372, allocations: 0 / 446.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.3372, allocations: 2.016 kB / 446.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003179/0.3404, allocations: 2.158 MB / 448.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3404, allocations: 2.172 kB / 448.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.3408, allocations: 82.41 kB / 448.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001912/0.341, allocations: 60.91 kB / 449 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.062e-05/0.3411, allocations: 8.828 kB / 449 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.3423, allocations: 1.744 MB / 450.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3423, allocations: 1.656 kB / 450.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.3442, allocations: 0.9806 MB / 451.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006171/0.3448, allocations: 451.2 kB / 452.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/0.345, allocations: 9.359 kB / 452.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005294/0.3455, allocations: 54.78 kB / 452.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.3456, allocations: 42.12 kB / 452.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.3457, allocations: 15.38 kB / 452.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003075/0.3488, allocations: 2.256 MB / 454.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3488, allocations: 0 / 454.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008789/0.3497, allocations: 256.3 kB / 454.8 MB, free: 12.66 MB / 350.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.001652/0.3513, allocations: 478.3 kB / 455.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3526, allocations: 0.6095 MB / 455.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.3526, allocations: 1.156 kB / 455.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005891/0.3532, allocations: 364.2 kB / 456.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.3544, allocations: 289.7 kB / 456.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006167/0.3606, allocations: 3.779 MB / 460.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008747/0.3615, allocations: 1.484 MB / 461.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000382/0.3618, allocations: 96.5 kB / 461.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3618, allocations: 0 / 461.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of Templates: time 0.04307/0.4049, allocations: 29.6 MB / 491.5 MB, free: 11.96 MB / 382.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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.358071411959827]