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.001177/0.001177, allocations: 84.25 kB / 22.21 MB, free: 2.285 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.001325/0.001325, allocations: 167.3 kB / 25.61 MB, free: 8.473 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 1.008/1.008, allocations: 177 MB / 205.9 MB, free: 4.441 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.693e-06/1.693e-06, allocations: 0 / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.356e-05/2.525e-05, allocations: 6.812 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006912/0.006937, allocations: 5.321 MB / 279.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003147/0.01008, allocations: 1.841 MB / 281.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004587/0.01054, allocations: 19.88 kB / 281.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007194/0.01774, allocations: 0.5055 MB / 281.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001015/0.01875, allocations: 417.7 kB / 282.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008423/0.01959, allocations: 363.3 kB / 282.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007368/0.02696, allocations: 0.9196 MB / 283.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.02738, allocations: 221.3 kB / 283.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006929/0.02808, allocations: 0.5223 MB / 284.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006578/0.03466, allocations: 391 kB / 284.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.03488, allocations: 80 kB / 284.7 MB, free: 9.691 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.03516, allocations: 123.9 kB / 284.8 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004168/0.03558, allocations: 0.5922 MB / 285.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005638/0.03614, allocations: 426.7 kB / 285.8 MB, free: 8.559 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007503/0.04365, allocations: 1.203 MB / 287 MB, free: 7.352 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.04365, allocations: 0 / 287 MB, free: 7.352 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.04365, allocations: 0 / 287 MB, free: 7.352 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.689e-05/0.04372, allocations: 0 / 287 MB, free: 7.352 MB / 266.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.008942/0.05266, allocations: 2.195 MB / 289.2 MB, free: 5.109 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.0527, allocations: 12.02 kB / 289.2 MB, free: 5.098 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002975/0.053, allocations: 239.6 kB / 289.4 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.05426, allocations: 0.9573 MB / 290.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.05436, allocations: 92.97 kB / 290.5 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.907e-05/0.05444, allocations: 52.38 kB / 290.5 MB, free: 3.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00075/0.05519, allocations: 0.709 MB / 291.2 MB, free: 2.883 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.05521, allocations: 3.938 kB / 291.3 MB, free: 2.879 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.05525, allocations: 20 kB / 291.3 MB, free: 2.859 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.05526, allocations: 15.98 kB / 291.3 MB, free: 2.844 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006266/0.06152, allocations: 130.8 kB / 291.4 MB, free: 2.715 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009085/0.07061, allocations: 2.611 MB / 294 MB, free: 4 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004568/0.07107, allocations: 203.1 kB / 294.2 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.07124, allocations: 95.61 kB / 294.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.07126, allocations: 8.375 kB / 294.3 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.07129, allocations: 41.33 kB / 294.4 MB, free: 15.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.586e-06/0.07129, allocations: 0 / 294.4 MB, free: 15.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008174/0.07211, allocations: 403.3 kB / 294.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.07218, allocations: 213.6 kB / 295 MB, free: 14.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002059/0.07424, allocations: 1.919 MB / 296.9 MB, free: 13 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.07427, allocations: 33.7 kB / 296.9 MB, free: 12.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007902/0.07506, allocations: 0.9861 MB / 297.9 MB, free: 11.97 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.606e-05/0.07513, allocations: 83.31 kB / 298 MB, free: 11.89 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.07524, allocations: 79.59 kB / 298.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.07538, allocations: 496.4 kB / 298.5 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.74e-05/0.07546, allocations: 36.62 kB / 298.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.0757, allocations: 412.2 kB / 299 MB, free: 10.74 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.07596, allocations: 255.5 kB / 299.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.07596, allocations: 0 / 299.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004388/0.0764, allocations: 409.2 kB / 299.6 MB, free: 10.01 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.07642, allocations: 8 kB / 299.6 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.07643, allocations: 4 kB / 299.6 MB, free: 9.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001468/0.07657, allocations: 43.66 kB / 299.7 MB, free: 9.949 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.07672, allocations: 72.39 kB / 299.8 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.07786, allocations: 2.051 MB / 301.8 MB, free: 7.719 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.07809, allocations: 55.7 kB / 301.9 MB, free: 7.664 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.07811, allocations: 8 kB / 301.9 MB, free: 7.656 MB / 282.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.0001851/0.07829, allocations: 195.8 kB / 302.1 MB, free: 7.457 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.07843, allocations: 170.9 kB / 302.2 MB, free: 7.289 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003671/0.0788, allocations: 305.2 kB / 302.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.0788, allocations: 4 kB / 302.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.0788, allocations: 3.938 kB / 302.5 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.07881, allocations: 7.984 kB / 302.5 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.07998, allocations: 1.139 MB / 303.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.07998, allocations: 0 / 303.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.08009, allocations: 39.92 kB / 303.7 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.08019, allocations: 35.69 kB / 303.8 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.08021, allocations: 8 kB / 303.8 MB, free: 5.691 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008795/0.08109, allocations: 2.02 MB / 305.8 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.08109, allocations: 0 / 305.8 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004596/0.08155, allocations: 0.5213 MB / 306.3 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.08181, allocations: 242.8 kB / 306.5 MB, free: 2.766 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.255e-05/0.08188, allocations: 8 kB / 306.6 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.08205, allocations: 27.98 kB / 306.6 MB, free: 2.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.409e-05/0.08211, allocations: 31.94 kB / 306.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.08212, allocations: 8 kB / 306.6 MB, free: 2.691 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008551/0.08298, allocations: 1.054 MB / 307.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.08298, allocations: 0 / 307.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005048/0.08348, allocations: 207.6 kB / 307.9 MB, free: 1.41 MB / 282.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.0006987/0.08418, allocations: 331.8 kB / 308.2 MB, free: 1.184 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003925/0.08458, allocations: 345.7 kB / 308.5 MB, free: 0.832 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.08458, allocations: 0 / 308.5 MB, free: 0.832 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.08475, allocations: 253.3 kB / 308.8 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/0.08533, allocations: 209.9 kB / 309 MB, free: 364 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.08817, allocations: 2.369 MB / 311.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.08845, allocations: 354 kB / 311.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.0887, allocations: 154.2 kB / 311.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/0.08904, allocations: 286.1 kB / 312.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of SimCode: time 1.102e-06/0.08905, allocations: 0 / 312.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of Templates: time 0.02327/0.1123, allocations: 16.86 MB / 329 MB, free: 12.38 MB / 314.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] 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","",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.296819909941405]