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.001349/0.001349, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 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.00139/0.00139, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 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.58/1.58, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001948/0.001948, allocations: 63.89 kB / 373.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1159, allocations: 53.32 MB / 427.1 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2545/0.3704, allocations: 5.569 MB / 432.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.3732, allocations: 1.88 MB / 434.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003824/0.3736, allocations: 15.34 kB / 434.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009791/0.3746, allocations: 0.5244 MB / 435.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006923/0.3753, allocations: 388.4 kB / 435.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007933/0.3761, allocations: 373.9 kB / 435.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.3771, allocations: 0.8901 MB / 436.8 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.3775, allocations: 243.1 kB / 437 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005545/0.3781, allocations: 366.9 kB / 437.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000551/0.3786, allocations: 465.7 kB / 437.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.3787, allocations: 79.16 kB / 437.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002607/0.379, allocations: 121.2 kB / 438 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004961/0.3795, allocations: 0.5871 MB / 438.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005352/0.38, allocations: 0.741 MB / 439.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00255/0.3826, allocations: 2.131 MB / 441.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3826, allocations: 2.281 kB / 441.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3826, allocations: 3.172 kB / 441.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.449e-05/0.3827, allocations: 0 / 441.5 MB, free: 5.91 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.005487/0.3882, allocations: 2.143 MB / 443.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.3882, allocations: 13.03 kB / 443.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004176/0.3886, allocations: 194.7 kB / 443.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.3914, allocations: 1.515 MB / 445.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.3915, allocations: 77.89 kB / 445.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.723e-05/0.3916, allocations: 50.59 kB / 445.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3927, allocations: 0.5824 MB / 446 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.3927, allocations: 8.078 kB / 446 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.86e-05/0.3928, allocations: 21.81 kB / 446.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.3928, allocations: 11.53 kB / 446.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007222/0.3935, allocations: 345.2 kB / 446.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006546/0.4001, allocations: 3.243 MB / 449.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.4012, allocations: 357.8 kB / 450 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004906/0.4017, allocations: 173.1 kB / 450.2 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.4018, allocations: 2.922 kB / 450.2 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.4018, allocations: 37.59 kB / 450.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.234e-06/0.4018, allocations: 0 / 450.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002473/0.4043, allocations: 0.7038 MB / 450.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.466e-05/0.4043, allocations: 215.5 kB / 451.1 MB, free: 376 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006356/0.4107, allocations: 2.899 MB / 454 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.4108, allocations: 27.98 kB / 454.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009786/0.4118, allocations: 0.7955 MB / 454.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.4119, allocations: 76.11 kB / 454.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.4121, allocations: 69.47 kB / 455 MB, free: 14.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.4122, allocations: 321.5 kB / 455.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.4126, allocations: 117.6 kB / 455.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/0.4132, allocations: 294.2 kB / 455.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007817/0.4139, allocations: 359.5 kB / 456.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.4139, allocations: 1.031 kB / 456.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001702/0.4156, allocations: 0.5758 MB / 456.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.4157, allocations: 6.562 kB / 456.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.4157, allocations: 7.391 kB / 456.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003263/0.416, allocations: 60.67 kB / 456.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.4163, allocations: 76.61 kB / 456.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/0.4183, allocations: 1.726 MB / 458.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009027/0.4192, allocations: 57.08 kB / 458.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.4192, allocations: 15.53 kB / 458.6 MB, free: 11.75 MB / 366.1 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.001266/0.4205, allocations: 0.5804 MB / 459.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004575/0.4209, allocations: 177.3 kB / 459.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/0.4224, allocations: 0.5073 MB / 459.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.4224, allocations: 6.594 kB / 459.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.4224, allocations: 0.875 kB / 459.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4224, allocations: 0.9844 kB / 459.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003661/0.426, allocations: 1.687 MB / 461.5 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.4261, allocations: 7.969 kB / 461.5 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/0.4263, allocations: 47.03 kB / 461.6 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002024/0.4265, allocations: 43.98 kB / 461.6 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.4265, allocations: 11.23 kB / 461.6 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.4285, allocations: 1.672 MB / 463.3 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4285, allocations: 3.938 kB / 463.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.431, allocations: 0.7194 MB / 464 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.432, allocations: 389 kB / 464.4 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.4322, allocations: 6.594 kB / 464.4 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/0.4327, allocations: 48.17 kB / 464.5 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.4328, allocations: 28.55 kB / 464.5 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.4328, allocations: 7.938 kB / 464.5 MB, free: 7.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003853/0.4367, allocations: 2.072 MB / 466.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4367, allocations: 0 / 466.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001183/0.4378, allocations: 203.3 kB / 466.8 MB, free: 6.395 MB / 366.1 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.00141/0.4393, allocations: 371.3 kB / 467.1 MB, free: 6.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.4405, allocations: 433.1 kB / 467.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.4405, allocations: 1.125 kB / 467.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005531/0.4411, allocations: 259.2 kB / 467.8 MB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.4425, allocations: 221.7 kB / 468 MB, free: 5.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006357/0.4489, allocations: 3.051 MB / 471.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.4502, allocations: 1.356 MB / 472.4 MB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008865/0.451, allocations: 252.5 kB / 472.7 MB, free: 2.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.4513, allocations: 79.44 kB / 472.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of SimCode: time 1.253e-06/0.4513, allocations: 0 / 472.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of Templates: time 0.0356/0.4869, allocations: 15.85 MB / 488.6 MB, free: 2.672 MB / 382.1 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.306069982238114]