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.0008019/0.0008019, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00103/0.001832, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006966/0.0006966, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000894/0.001591, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9674/0.9674, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08691/1.054, allocations: 53.64 MB / 243.3 MB, free: 15.58 MB / 250.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 1.443e-06/1.443e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.364e-05, allocations: 2.312 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01786/0.01788, allocations: 5.419 MB / 249.9 MB, free: 8.875 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00888/0.02676, allocations: 1.893 MB / 251.8 MB, free: 6.977 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004188/0.02718, allocations: 19.88 kB / 251.8 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009453/0.02813, allocations: 0.5328 MB / 252.4 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006553/0.02878, allocations: 397.7 kB / 252.8 MB, free: 6.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006274/0.02941, allocations: 371.2 kB / 253.1 MB, free: 5.668 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009774/0.03039, allocations: 0.9158 MB / 254 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003833/0.03077, allocations: 223.3 kB / 254.3 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007996/0.03157, allocations: 0.6366 MB / 254.9 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004205/0.03199, allocations: 355.1 kB / 255.2 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.525e-05/0.03207, allocations: 84 kB / 255.3 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.03226, allocations: 119.9 kB / 255.4 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003233/0.03258, allocations: 0.5494 MB / 256 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002815/0.03286, allocations: 338.9 kB / 256.3 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009832/0.03385, allocations: 1.179 MB / 257.5 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.801e-05/0.03387, allocations: 4 kB / 257.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.03387, allocations: 0 / 257.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.012e-05/0.03392, allocations: 3.938 kB / 257.5 MB, free: 1.266 MB / 250.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.002138/0.03606, allocations: 2.154 MB / 259.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.03609, allocations: 11.97 kB / 259.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.03626, allocations: 144.8 kB / 259.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008368/0.0371, allocations: 0.8181 MB / 260.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.991e-05/0.03718, allocations: 92.97 kB / 260.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.908e-05/0.03723, allocations: 51.94 kB / 260.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005055/0.03773, allocations: 0.6913 MB / 261.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.03774, allocations: 4 kB / 261.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.03777, allocations: 23.98 kB / 261.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.03778, allocations: 12 kB / 261.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.03792, allocations: 118.8 kB / 261.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.0397, allocations: 1.876 MB / 263.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.04, allocations: 190.4 kB / 263.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.04013, allocations: 85.17 kB / 263.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.04015, allocations: 7.938 kB / 263.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.04018, allocations: 42.55 kB / 263.8 MB, free: 10.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.04018, allocations: 4 kB / 263.8 MB, free: 10.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005212/0.0407, allocations: 286.2 kB / 264.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.04072, allocations: 55.41 kB / 264.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.04192, allocations: 1.675 MB / 265.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.04194, allocations: 33.7 kB / 265.9 MB, free: 8.547 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.04215, allocations: 448.3 kB / 266.3 MB, free: 8.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.0422, allocations: 83.25 kB / 266.4 MB, free: 8.023 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.604e-05/0.04226, allocations: 73.95 kB / 266.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.769e-05/0.04233, allocations: 325.9 kB / 266.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.024e-05/0.04237, allocations: 28.64 kB / 266.8 MB, free: 7.594 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.04252, allocations: 349.9 kB / 267.1 MB, free: 7.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.04267, allocations: 205.2 kB / 267.3 MB, free: 6.891 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.04267, allocations: 0 / 267.3 MB, free: 6.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002906/0.04296, allocations: 294 kB / 267.6 MB, free: 6.598 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.04298, allocations: 10.97 kB / 267.6 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.04299, allocations: 7.938 kB / 267.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/0.04311, allocations: 32.84 kB / 267.7 MB, free: 6.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.04327, allocations: 80.23 kB / 267.8 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007524/0.04402, allocations: 1.41 MB / 269.2 MB, free: 4.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.0442, allocations: 43.77 kB / 269.2 MB, free: 4.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.04422, allocations: 19.98 kB / 269.2 MB, free: 4.906 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.0001567/0.04438, allocations: 140.6 kB / 269.4 MB, free: 4.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.469e-05/0.04446, allocations: 91.83 kB / 269.5 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/0.04476, allocations: 282.2 kB / 269.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.04477, allocations: 0 / 269.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.04477, allocations: 0 / 269.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.04477, allocations: 0 / 269.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008625/0.04563, allocations: 0.8351 MB / 270.6 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.04563, allocations: 0 / 270.6 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.04574, allocations: 47.91 kB / 270.6 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.04596, allocations: 218.7 kB / 270.8 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.692e-05/0.04604, allocations: 36.86 kB / 270.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.04605, allocations: 7.938 kB / 270.9 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006625/0.04671, allocations: 1.368 MB / 272.2 MB, free: 1.754 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.04672, allocations: 4 kB / 272.2 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003423/0.04706, allocations: 375.8 kB / 272.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.778e-05/0.04713, allocations: 8 kB / 272.6 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.04728, allocations: 35.97 kB / 272.6 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.04734, allocations: 31.94 kB / 272.7 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.04736, allocations: 4 kB / 272.7 MB, free: 1.281 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007334/0.04809, allocations: 0.9144 MB / 273.6 MB, free: 344 kB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04809, allocations: 0 / 273.6 MB, free: 344 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004202/0.04851, allocations: 207.6 kB / 273.8 MB, free: 136 kB / 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.0009996/0.04951, allocations: 494.9 kB / 274.3 MB, free: 15.87 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003222/0.04983, allocations: 270.1 kB / 274.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-05/0.04985, allocations: 21 kB / 274.6 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.04999, allocations: 195.3 kB / 274.8 MB, free: 15.37 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.0505, allocations: 253.9 kB / 275 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0048/0.0553, allocations: 2.387 MB / 277.4 MB, free: 12.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.05555, allocations: 353.8 kB / 277.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002402/0.05579, allocations: 158.2 kB / 277.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/0.05612, allocations: 261.2 kB / 278.2 MB, free: 11.89 MB / 282.7 MB Notification: Performance of SimCode: time 9.01e-07/0.05612, allocations: 0 / 278.2 MB, free: 11.89 MB / 282.7 MB Notification: Performance of Templates: time 0.1151/0.1712, allocations: 16.91 MB / 295.1 MB, free: 29.95 MB / 282.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.131018034182489]