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.001694/0.001694, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.002035/0.002035, allocations: 208.2 kB / 24.48 MB, free: 3.977 MB / 14.72 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 1.515/1.515, allocations: 230.6 MB / 258.2 MB, free: 7.793 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+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 0.001525/0.001525, allocations: 47.86 kB / 378.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2601, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006903/0.267, allocations: 4.958 MB / 437.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.27, allocations: 1.792 MB / 439.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002654/0.2703, allocations: 15.88 kB / 439.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.2713, allocations: 0.5057 MB / 439.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006598/0.272, allocations: 394 kB / 440 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007563/0.2727, allocations: 381.4 kB / 440.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009738/0.2737, allocations: 0.9002 MB / 441.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003996/0.2741, allocations: 233.3 kB / 441.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003919/0.2745, allocations: 382.7 kB / 441.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005204/0.275, allocations: 466.3 kB / 442.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.2751, allocations: 80 kB / 442.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.2753, allocations: 120 kB / 442.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004796/0.2758, allocations: 0.5882 MB / 443.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005185/0.2763, allocations: 0.5512 MB / 443.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002056/0.2784, allocations: 2.148 MB / 445.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2784, allocations: 0 / 445.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2784, allocations: 0 / 445.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.2784, allocations: 0 / 445.8 MB, free: 9.184 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.003308/0.2817, allocations: 2.081 MB / 447.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.2818, allocations: 12.03 kB / 447.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/0.282, allocations: 195.7 kB / 448.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/0.2847, allocations: 1.451 MB / 449.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.2848, allocations: 96.41 kB / 449.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.957e-05/0.2849, allocations: 48 kB / 449.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.2861, allocations: 0.8286 MB / 450.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.2861, allocations: 4 kB / 450.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.129e-05/0.2862, allocations: 20 kB / 450.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.2862, allocations: 12 kB / 450.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000768/0.287, allocations: 351.7 kB / 450.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004531/0.2915, allocations: 2.846 MB / 453.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.2926, allocations: 350.5 kB / 454.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004808/0.2931, allocations: 176.8 kB / 454.2 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.2931, allocations: 7.938 kB / 454.2 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.2932, allocations: 34.56 kB / 454.3 MB, free: 392 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.2932, allocations: 0 / 454.3 MB, free: 392 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001884/0.2951, allocations: 0.6253 MB / 454.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.2952, allocations: 209.6 kB / 455.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003829/0.299, allocations: 2.869 MB / 458 MB, free: 12.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.2991, allocations: 33.7 kB / 458 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008065/0.2999, allocations: 0.7974 MB / 458.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.288e-05/0.2999, allocations: 75.36 kB / 458.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.3001, allocations: 69.98 kB / 458.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3003, allocations: 322 kB / 459.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/0.3006, allocations: 124.5 kB / 459.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.3012, allocations: 447 kB / 459.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007495/0.302, allocations: 355.9 kB / 460.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.302, allocations: 4.062 kB / 460.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001307/0.3033, allocations: 0.5709 MB / 460.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3033, allocations: 11.22 kB / 460.8 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3033, allocations: 4 kB / 460.8 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002792/0.3036, allocations: 61.05 kB / 460.8 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.3039, allocations: 71.89 kB / 460.9 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0018/0.3057, allocations: 1.594 MB / 462.5 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.3061, allocations: 55.7 kB / 462.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.3062, allocations: 16 kB / 462.6 MB, free: 7.715 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.0008086/0.307, allocations: 0.5757 MB / 463.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.3072, allocations: 170.8 kB / 463.3 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.3085, allocations: 0.51 MB / 463.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3085, allocations: 0 / 463.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.3085, allocations: 128 / 463.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3085, allocations: 0 / 463.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002743/0.3112, allocations: 1.425 MB / 465.2 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3112, allocations: 0 / 465.2 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.3115, allocations: 51.91 kB / 465.3 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001641/0.3116, allocations: 48.77 kB / 465.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.3116, allocations: 7.938 kB / 465.3 MB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001528/0.3132, allocations: 1.547 MB / 466.9 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3132, allocations: 0 / 466.9 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.3147, allocations: 0.7094 MB / 467.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007579/0.3154, allocations: 310.8 kB / 467.9 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.3155, allocations: 4 kB / 467.9 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004175/0.316, allocations: 47.95 kB / 467.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/0.3161, allocations: 31.94 kB / 468 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.3161, allocations: 8 kB / 468 MB, free: 2.082 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002756/0.3188, allocations: 2.043 MB / 470 MB, free: 16 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3188, allocations: 0 / 470 MB, free: 16 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007563/0.3196, allocations: 203.7 kB / 470.2 MB, free: 15.81 MB / 382.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.001402/0.321, allocations: 392.2 kB / 470.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.3221, allocations: 427.1 kB / 471 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3221, allocations: 3.938 kB / 471 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005667/0.3226, allocations: 270.5 kB / 471.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009172/0.3235, allocations: 204.8 kB / 471.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004746/0.3283, allocations: 3.044 MB / 474.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/0.3296, allocations: 0.7588 MB / 475.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004522/0.3301, allocations: 242.2 kB / 475.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.3303, allocations: 79.44 kB / 475.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3303, allocations: 0 / 475.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of Templates: time 0.02965/0.36, allocations: 17.05 MB / 492.7 MB, free: 9.551 MB / 398.1 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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.057373877003556]