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.000829/0.000829, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003541/0.003541, allocations: 158.6 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.8282/0.8282, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 2.996e-06/2.996e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.118e-05/4.417e-05, allocations: 4.672 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.005866/0.005911, allocations: 4.963 MB / 330.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.008852, allocations: 1.812 MB / 332.6 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003327/0.009185, allocations: 15.88 kB / 332.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009763/0.01016, allocations: 0.5095 MB / 333.1 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006729/0.01083, allocations: 401.6 kB / 333.5 MB, free: 7.699 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006846/0.01152, allocations: 385.2 kB / 333.9 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008778/0.0124, allocations: 0.9196 MB / 334.8 MB, free: 6.402 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003959/0.01279, allocations: 221.2 kB / 335 MB, free: 6.184 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005675/0.01336, allocations: 0.5185 MB / 335.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004495/0.01381, allocations: 375.1 kB / 335.9 MB, free: 5.297 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.451e-05/0.0139, allocations: 80 kB / 336 MB, free: 5.219 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.01409, allocations: 123.9 kB / 336.1 MB, free: 5.098 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004077/0.01449, allocations: 0.5961 MB / 336.7 MB, free: 4.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004075/0.0149, allocations: 434.6 kB / 337.1 MB, free: 4.074 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002021/0.01692, allocations: 2.06 MB / 339.2 MB, free: 2.008 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.01693, allocations: 4 kB / 339.2 MB, free: 2.004 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01693, allocations: 0 / 339.2 MB, free: 2.004 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.814e-05/0.01696, allocations: 0 / 339.2 MB, free: 2.004 MB / 298.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.002745/0.0197, allocations: 2.054 MB / 341.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.01974, allocations: 8.031 kB / 341.2 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002502/0.01999, allocations: 199.6 kB / 341.4 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002065/0.02205, allocations: 1.454 MB / 342.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.02217, allocations: 96.16 kB / 343 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-05/0.02224, allocations: 44 kB / 343 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009737/0.02321, allocations: 0.8441 MB / 343.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.02322, allocations: 3.938 kB / 343.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.02326, allocations: 24 kB / 343.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.02326, allocations: 12 kB / 343.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/0.02368, allocations: 343.8 kB / 344.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/0.02631, allocations: 2.843 MB / 347.1 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005845/0.02689, allocations: 354.6 kB / 347.4 MB, free: 9.453 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/0.02716, allocations: 176.7 kB / 347.6 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.02718, allocations: 4 kB / 347.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.0272, allocations: 34.56 kB / 347.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.0272, allocations: 4 kB / 347.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009821/0.02818, allocations: 0.6214 MB / 348.3 MB, free: 8.598 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.02826, allocations: 209.6 kB / 348.5 MB, free: 8.344 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/0.03037, allocations: 2.873 MB / 351.4 MB, free: 5.422 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.03039, allocations: 33.7 kB / 351.4 MB, free: 5.383 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000442/0.03083, allocations: 0.7897 MB / 352.2 MB, free: 4.586 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.442e-05/0.03088, allocations: 83.31 kB / 352.3 MB, free: 4.504 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.43e-05/0.03095, allocations: 69.98 kB / 352.3 MB, free: 4.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.88e-05/0.03103, allocations: 318 kB / 352.6 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/0.03146, allocations: 124.6 kB / 352.8 MB, free: 3.992 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.03174, allocations: 443.1 kB / 353.2 MB, free: 3.453 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.03211, allocations: 356.8 kB / 353.5 MB, free: 3.055 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.03212, allocations: 0 / 353.5 MB, free: 3.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005929/0.03271, allocations: 0.5606 MB / 354.1 MB, free: 2.484 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.03273, allocations: 8 kB / 354.1 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.03273, allocations: 8.062 kB / 354.1 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001923/0.03293, allocations: 56.83 kB / 354.2 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.03308, allocations: 84.02 kB / 354.3 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.03409, allocations: 1.586 MB / 355.8 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.03429, allocations: 59.8 kB / 355.9 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.0343, allocations: 16 kB / 355.9 MB, free: 0.5703 MB / 314.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 (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.0004351/0.03474, allocations: 0.5791 MB / 356.5 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.03485, allocations: 166.9 kB / 356.7 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006334/0.03549, allocations: 0.5098 MB / 357.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.03549, allocations: 4 kB / 357.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.03549, allocations: 0 / 357.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.0355, allocations: 0 / 357.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.03688, allocations: 1.427 MB / 358.6 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.03688, allocations: 4 kB / 358.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.037, allocations: 47.97 kB / 358.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.633e-05/0.03709, allocations: 48.77 kB / 358.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.03711, allocations: 7.938 kB / 358.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.03816, allocations: 1.547 MB / 360.2 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.03816, allocations: 3.938 kB / 360.3 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007228/0.03888, allocations: 0.7147 MB / 361 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003163/0.0392, allocations: 306.8 kB / 361.3 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.365e-05/0.03926, allocations: 8 kB / 361.3 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.03946, allocations: 43.95 kB / 361.3 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.015e-05/0.03953, allocations: 35.89 kB / 361.4 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.03954, allocations: 8 kB / 361.4 MB, free: 10.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001533/0.04107, allocations: 2.05 MB / 363.4 MB, free: 8.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04107, allocations: 0 / 363.4 MB, free: 8.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004365/0.04151, allocations: 203.6 kB / 363.6 MB, free: 8.645 MB / 330.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.000659/0.04217, allocations: 382.3 kB / 364 MB, free: 8.422 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006006/0.04277, allocations: 430.5 kB / 364.4 MB, free: 7.992 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.04277, allocations: 0 / 364.4 MB, free: 7.992 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.04305, allocations: 262.7 kB / 364.7 MB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005643/0.04361, allocations: 214.1 kB / 364.9 MB, free: 7.512 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.04682, allocations: 3.092 MB / 368 MB, free: 4.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.04736, allocations: 0.7702 MB / 368.7 MB, free: 3.566 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.0475, allocations: 84.5 kB / 368.8 MB, free: 3.484 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.0475, allocations: 0 / 368.8 MB, free: 3.484 MB / 330.7 MB Notification: Performance of Templates: time 0.01957/0.06707, allocations: 25.09 MB / 393.9 MB, free: 10.39 MB / 362.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/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.980155574157834]