Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001282/0.001282, allocations: 112.2 kB / 21.18 MB, free: 0.6289 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.001348/0.001348, allocations: 207 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 230.4 MB / 258.1 MB, free: 8.141 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 75.83 kB / 378.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2247, allocations: 53.32 MB / 432 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007174/0.2319, allocations: 5.59 MB / 437.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.2349, allocations: 1.909 MB / 439.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002863/0.2352, allocations: 15.94 kB / 439.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.2362, allocations: 0.5213 MB / 440.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006981/0.2369, allocations: 386 kB / 440.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007618/0.2377, allocations: 389.8 kB / 440.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009676/0.2387, allocations: 0.8886 MB / 441.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004024/0.2391, allocations: 232.9 kB / 442 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003865/0.2394, allocations: 362.8 kB / 442.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005324/0.24, allocations: 466.3 kB / 442.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.2401, allocations: 80 kB / 442.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.2403, allocations: 127.9 kB / 443 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004843/0.2408, allocations: 0.5844 MB / 443.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006288/0.2414, allocations: 0.7415 MB / 444.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002084/0.2435, allocations: 2.132 MB / 446.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2435, allocations: 4 kB / 446.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2435, allocations: 0 / 446.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.2435, allocations: 0 / 446.4 MB, free: 8.941 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.003429/0.2469, allocations: 2.145 MB / 448.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.247, allocations: 8.031 kB / 448.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.2472, allocations: 195.7 kB / 448.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002434/0.2497, allocations: 1.527 MB / 450.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.984e-05/0.2498, allocations: 66.7 kB / 450.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.593e-05/0.2499, allocations: 48 kB / 450.4 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.2509, allocations: 0.5893 MB / 451 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.251, allocations: 0 / 451 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.442e-05/0.251, allocations: 20 kB / 451 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.251, allocations: 15.94 kB / 451 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007451/0.2518, allocations: 339.8 kB / 451.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004934/0.2567, allocations: 3.262 MB / 454.6 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.2579, allocations: 361.3 kB / 455 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004863/0.2583, allocations: 172.8 kB / 455.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.2584, allocations: 7.938 kB / 455.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.2584, allocations: 34.56 kB / 455.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.285e-06/0.2584, allocations: 0 / 455.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.002014/0.2604, allocations: 0.7016 MB / 455.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.2605, allocations: 209.6 kB / 456.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003991/0.2645, allocations: 2.901 MB / 459 MB, free: 11.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.2646, allocations: 33.7 kB / 459 MB, free: 11.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007916/0.2654, allocations: 0.786 MB / 459.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.721e-05/0.2655, allocations: 79.38 kB / 459.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.2656, allocations: 69.97 kB / 460 MB, free: 10.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2657, allocations: 318 kB / 460.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003686/0.2661, allocations: 124.6 kB / 460.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004845/0.2666, allocations: 292.8 kB / 460.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007508/0.2673, allocations: 353.7 kB / 461 MB, free: 9.785 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/0.2673, allocations: 8 kB / 461 MB, free: 9.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001306/0.2686, allocations: 0.5633 MB / 461.6 MB, free: 9.203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.2687, allocations: 4 kB / 461.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.2687, allocations: 4 kB / 461.6 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002838/0.269, allocations: 65.09 kB / 461.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.2693, allocations: 75.84 kB / 461.7 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.271, allocations: 1.725 MB / 463.5 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.2715, allocations: 63.7 kB / 463.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.2715, allocations: 12 kB / 463.5 MB, free: 7.117 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.000821/0.2724, allocations: 0.5796 MB / 464.1 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.2726, allocations: 178.8 kB / 464.3 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.2738, allocations: 0.5123 MB / 464.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2738, allocations: 0 / 464.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2739, allocations: 0 / 464.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007973/0.2746, allocations: 391.8 kB / 465.2 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.2748, allocations: 7.938 kB / 465.2 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.2752, allocations: 47.95 kB / 465.2 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.2753, allocations: 27.95 kB / 465.3 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001728/0.277, allocations: 0.5286 MB / 465.8 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001266/0.2783, allocations: 0.7105 MB / 466.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003223/0.2786, allocations: 123.8 kB / 466.6 MB, free: 3.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00278/0.2814, allocations: 2.075 MB / 468.7 MB, free: 1.859 MB / 366.1 MB Notification: Performance of Backend: time 4.91e-07/0.2814, allocations: 3.938 kB / 468.7 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003017/0.2844, allocations: 0.832 MB / 469.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of SimCode: time 0.004739/0.2892, allocations: 3.523 MB / 473.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of Templates: time 0.03036/0.3195, allocations: 16.53 MB / 489.6 MB, free: 13.18 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.607109677046537]