Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007116/0.0007116, allocations: 92.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003231/0.003231, allocations: 157.9 kB / 24.7 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.841/0.841, allocations: 177 MB / 204.9 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.961e-05/2.11e-05, allocations: 6.219 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004238/0.004259, allocations: 4.97 MB / 330.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.006588, allocations: 1.795 MB / 332.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.006809, allocations: 19.88 kB / 332.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008983/0.007707, allocations: 0.5094 MB / 333.1 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005142/0.008221, allocations: 413.6 kB / 333.5 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005051/0.008726, allocations: 378 kB / 333.8 MB, free: 7.301 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006738/0.0094, allocations: 0.9158 MB / 334.7 MB, free: 6.379 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003186/0.009719, allocations: 225.2 kB / 335 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003846/0.0101, allocations: 0.5146 MB / 335.5 MB, free: 5.641 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.01042, allocations: 375.1 kB / 335.8 MB, free: 5.273 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.872e-05/0.01049, allocations: 80 kB / 335.9 MB, free: 5.195 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.01064, allocations: 127.8 kB / 336 MB, free: 5.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003165/0.01096, allocations: 0.5961 MB / 336.6 MB, free: 4.473 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002549/0.01121, allocations: 434.6 kB / 337.1 MB, free: 4.047 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001438/0.01265, allocations: 2.068 MB / 339.1 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.01265, allocations: 0 / 339.1 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.01265, allocations: 0 / 339.1 MB, free: 1.973 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.01266, allocations: 0 / 339.1 MB, free: 1.973 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.001876/0.01454, allocations: 2.044 MB / 341.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.01458, allocations: 19.98 kB / 341.2 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.01474, allocations: 203.6 kB / 341.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.0161, allocations: 1.454 MB / 342.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.538e-05/0.01618, allocations: 96.97 kB / 342.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.081e-05/0.01623, allocations: 48.38 kB / 343 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007173/0.01695, allocations: 0.8345 MB / 343.8 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.01696, allocations: 4 kB / 343.8 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.017, allocations: 20 kB / 343.8 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.01701, allocations: 12 kB / 343.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004245/0.01744, allocations: 347.7 kB / 344.2 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.02006, allocations: 2.843 MB / 347 MB, free: 9.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.02067, allocations: 350.5 kB / 347.4 MB, free: 9.418 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.02093, allocations: 176.8 kB / 347.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.02096, allocations: 4 kB / 347.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.02098, allocations: 34.56 kB / 347.6 MB, free: 9.195 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.02098, allocations: 0 / 347.6 MB, free: 9.195 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.00095/0.02193, allocations: 0.6263 MB / 348.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.02199, allocations: 213.6 kB / 348.4 MB, free: 8.301 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002106/0.0241, allocations: 2.861 MB / 351.3 MB, free: 5.391 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.02412, allocations: 33.7 kB / 351.3 MB, free: 5.352 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004484/0.02457, allocations: 0.7974 MB / 352.1 MB, free: 4.547 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.127e-05/0.02461, allocations: 71.38 kB / 352.2 MB, free: 4.477 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.014e-05/0.02468, allocations: 69.98 kB / 352.3 MB, free: 4.402 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.445e-05/0.02475, allocations: 322 kB / 352.6 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.02493, allocations: 124.6 kB / 352.7 MB, free: 3.961 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004206/0.02535, allocations: 443.1 kB / 353.1 MB, free: 3.422 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.02575, allocations: 362.9 kB / 353.5 MB, free: 3.016 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.02575, allocations: 7.875 kB / 353.5 MB, free: 3.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006151/0.02637, allocations: 0.5519 MB / 354 MB, free: 2.445 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.02638, allocations: 7.984 kB / 354.1 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.02639, allocations: 4 kB / 354.1 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.02656, allocations: 68.94 kB / 354.1 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.0267, allocations: 71.89 kB / 354.2 MB, free: 2.293 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009794/0.02768, allocations: 1.598 MB / 355.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.02788, allocations: 55.75 kB / 355.8 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.0279, allocations: 16 kB / 355.9 MB, free: 0.5273 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.000426/0.02832, allocations: 0.5786 MB / 356.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.02844, allocations: 174.8 kB / 356.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006096/0.02905, allocations: 0.51 MB / 357.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.02905, allocations: 0 / 357.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.02906, allocations: 0 / 357.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.02906, allocations: 4 kB / 357.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.03047, allocations: 1.415 MB / 358.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.03047, allocations: 3.938 kB / 358.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.03059, allocations: 51.89 kB / 358.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.03069, allocations: 48.83 kB / 358.6 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.0307, allocations: 0 / 358.6 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000965/0.03167, allocations: 1.547 MB / 360.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.03167, allocations: 0 / 360.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007433/0.03241, allocations: 0.7155 MB / 360.9 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/0.03273, allocations: 302.9 kB / 361.2 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.484e-05/0.03279, allocations: 8 kB / 361.2 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.03299, allocations: 47.95 kB / 361.3 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.786e-05/0.03305, allocations: 27.95 kB / 361.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.03306, allocations: 11.98 kB / 361.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001548/0.03461, allocations: 2.043 MB / 363.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.03461, allocations: 0 / 363.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004194/0.03503, allocations: 211.6 kB / 363.5 MB, free: 8.617 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.0005962/0.03563, allocations: 374.9 kB / 363.9 MB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005716/0.0362, allocations: 431 kB / 364.3 MB, free: 7.934 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.0362, allocations: 4.062 kB / 364.3 MB, free: 7.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.03646, allocations: 258.5 kB / 364.6 MB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005356/0.03699, allocations: 210.6 kB / 364.8 MB, free: 7.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.03989, allocations: 3.097 MB / 367.9 MB, free: 4.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.04041, allocations: 0.7742 MB / 368.7 MB, free: 3.508 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.04055, allocations: 80.5 kB / 368.7 MB, free: 3.43 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.04055, allocations: 4 kB / 368.7 MB, free: 3.426 MB / 330.7 MB Notification: Performance of Templates: time 0.01933/0.05987, allocations: 25.11 MB / 393.9 MB, free: 10.32 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 5.401725955307484]