Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.00156/0.00156, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001985/0.001985, allocations: 217 kB / 24.5 MB, free: 4.133 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.498/1.498, allocations: 230.5 MB / 258.2 MB, free: 8.016 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 71.88 kB / 379 MB, free: 2.527 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2704, allocations: 53.39 MB / 432.4 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008314/0.2788, allocations: 6.123 MB / 438.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004104/0.2829, allocations: 2.333 MB / 440.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006255/0.2835, allocations: 27.75 kB / 440.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001645/0.2851, allocations: 0.6224 MB / 441.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.2862, allocations: 461.6 kB / 442 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000947/0.2872, allocations: 410.9 kB / 442.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00182/0.289, allocations: 1.313 MB / 443.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005425/0.2895, allocations: 310.3 kB / 444 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006431/0.2902, allocations: 0.4984 MB / 444.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007486/0.2909, allocations: 0.6072 MB / 445.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001506/0.2911, allocations: 116 kB / 445.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003062/0.2914, allocations: 172 kB / 445.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005266/0.2919, allocations: 0.6622 MB / 446 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008249/0.2927, allocations: 0.8972 MB / 446.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002703/0.2954, allocations: 2.642 MB / 449.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2954, allocations: 0 / 449.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2954, allocations: 3.938 kB / 449.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.804e-05/0.2955, allocations: 0 / 449.6 MB, free: 5.555 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004107/0.2996, allocations: 2.366 MB / 452 MB, free: 3.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2996, allocations: 8.031 kB / 452 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003422/0.3, allocations: 227.5 kB / 452.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002874/0.3028, allocations: 1.631 MB / 453.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.303, allocations: 190.1 kB / 454 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.3031, allocations: 63.95 kB / 454.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.3047, allocations: 0.8258 MB / 454.9 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.3047, allocations: 7.984 kB / 454.9 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.533e-05/0.3048, allocations: 24 kB / 454.9 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.3048, allocations: 16 kB / 454.9 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.3059, allocations: 0.5555 MB / 455.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006691/0.3126, allocations: 3.942 MB / 459.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.3139, allocations: 0.5033 MB / 459.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007773/0.3147, allocations: 348.7 kB / 460.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.3147, allocations: 4.281 kB / 460.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.3148, allocations: 38.84 kB / 460.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/0.3148, allocations: 4 kB / 460.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002507/0.3173, allocations: 0.8735 MB / 461.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/0.3175, allocations: 265 kB / 461.5 MB, free: 9.301 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004654/0.3221, allocations: 3.168 MB / 464.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.093e-05/0.3222, allocations: 33.7 kB / 464.7 MB, free: 6.059 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008749/0.3231, allocations: 0.8576 MB / 465.5 MB, free: 5.195 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.3232, allocations: 126.9 kB / 465.6 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.3234, allocations: 90.14 kB / 465.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3235, allocations: 326 kB / 466 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.324, allocations: 212.9 kB / 466.3 MB, free: 4.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006344/0.3246, allocations: 385.5 kB / 466.6 MB, free: 3.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009741/0.3256, allocations: 0.5243 MB / 467.2 MB, free: 3.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.3256, allocations: 4 kB / 467.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001714/0.3273, allocations: 0.7818 MB / 467.9 MB, free: 2.621 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3273, allocations: 11.94 kB / 468 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.3274, allocations: 0 / 468 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003242/0.3277, allocations: 72.94 kB / 468 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.3281, allocations: 115.9 kB / 468.1 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001897/0.33, allocations: 1.695 MB / 469.8 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006886/0.3307, allocations: 75.7 kB / 469.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.3308, allocations: 24 kB / 469.9 MB, free: 0.5156 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001027/0.3318, allocations: 0.6539 MB / 470.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.3321, allocations: 194.7 kB / 470.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.3324, allocations: 214.6 kB / 471 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3324, allocations: 12 kB / 471 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3324, allocations: 0 / 471 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3324, allocations: 4 kB / 471 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/0.3361, allocations: 2.142 MB / 473.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3361, allocations: 0 / 473.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/0.3365, allocations: 71.95 kB / 473.2 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002085/0.3368, allocations: 72.81 kB / 473.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.3368, allocations: 11.94 kB / 473.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/0.3385, allocations: 1.632 MB / 474.9 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3385, allocations: 128 / 474.9 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.3405, allocations: 0.9918 MB / 475.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009762/0.3415, allocations: 370.6 kB / 476.3 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001918/0.3417, allocations: 12 kB / 476.3 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005384/0.3422, allocations: 51.94 kB / 476.3 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3423, allocations: 43.94 kB / 476.4 MB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.3424, allocations: 12 kB / 476.4 MB, free: 9.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003522/0.3459, allocations: 2.255 MB / 478.7 MB, free: 7.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3459, allocations: 0 / 478.7 MB, free: 7.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001068/0.347, allocations: 259.6 kB / 478.9 MB, free: 7.297 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.001794/0.3488, allocations: 468 kB / 479.4 MB, free: 6.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.3502, allocations: 0.5851 MB / 479.9 MB, free: 6.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.3502, allocations: 4 kB / 480 MB, free: 6.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006805/0.3509, allocations: 354.5 kB / 480.3 MB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.3522, allocations: 294 kB / 480.6 MB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006543/0.3587, allocations: 3.73 MB / 484.3 MB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.36, allocations: 1.492 MB / 485.8 MB, free: 452 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.3605, allocations: 99.44 kB / 485.9 MB, free: 352 kB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3605, allocations: 0 / 485.9 MB, free: 352 kB / 382.1 MB Notification: Performance of Templates: time 0.0455/0.406, allocations: 29.74 MB / 0.5036 GB, free: 2.633 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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: 9.536531873978674]