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.001296/0.001296, allocations: 116.9 kB / 19.17 MB, free: 3.91 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.001409/0.001409, allocations: 210.5 kB / 22.13 MB, free: 0.9609 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.583/1.583, allocations: 230.2 MB / 255.1 MB, free: 15.41 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.001874/0.001874, allocations: 67.84 kB / 374.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.0968, allocations: 53.31 MB / 427.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007515/0.1043, allocations: 5.577 MB / 433.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003373/0.1077, allocations: 1.886 MB / 435.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000369/0.1081, allocations: 15.94 kB / 435.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.1092, allocations: 0.5213 MB / 435.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008232/0.11, allocations: 389.9 kB / 436.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008302/0.1109, allocations: 378.3 kB / 436.6 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.1119, allocations: 0.8964 MB / 437.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004349/0.1123, allocations: 232.9 kB / 437.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004384/0.1128, allocations: 370.7 kB / 438.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005796/0.1134, allocations: 462.3 kB / 438.5 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.1135, allocations: 83.98 kB / 438.6 MB, free: 9.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.1137, allocations: 120 kB / 438.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005209/0.1142, allocations: 0.5882 MB / 439.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000695/0.1149, allocations: 0.7415 MB / 440 MB, free: 8.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002206/0.1171, allocations: 2.132 MB / 442.2 MB, free: 6.109 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1171, allocations: 0 / 442.2 MB, free: 6.109 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1171, allocations: 3.938 kB / 442.2 MB, free: 6.105 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.1172, allocations: 0 / 442.2 MB, free: 6.105 MB / 366.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.003391/0.1206, allocations: 2.145 MB / 444.3 MB, free: 3.902 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1206, allocations: 12.03 kB / 444.3 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002843/0.1209, allocations: 199.6 kB / 444.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002375/0.1233, allocations: 1.515 MB / 446 MB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.1234, allocations: 71.02 kB / 446.1 MB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.458e-05/0.1234, allocations: 44 kB / 446.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.1246, allocations: 0.5854 MB / 446.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1246, allocations: 0 / 446.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.1247, allocations: 27.98 kB / 446.8 MB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.1247, allocations: 15.94 kB / 446.8 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007777/0.1255, allocations: 343.8 kB / 447.1 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1804/0.3059, allocations: 3.231 MB / 450.3 MB, free: 23.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.307, allocations: 363.9 kB / 450.7 MB, free: 23.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004394/0.3074, allocations: 183.2 kB / 450.9 MB, free: 23.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.48e-05/0.3075, allocations: 2.375 kB / 450.9 MB, free: 23.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/0.3075, allocations: 38.16 kB / 450.9 MB, free: 23.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 2.043e-06/0.3075, allocations: 0 / 450.9 MB, free: 23.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001791/0.3093, allocations: 0.7004 MB / 451.6 MB, free: 22.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.3093, allocations: 218.3 kB / 451.8 MB, free: 22.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003437/0.3128, allocations: 2.905 MB / 454.7 MB, free: 21.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/0.3128, allocations: 27.8 kB / 454.8 MB, free: 21.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005496/0.3134, allocations: 0.7886 MB / 455.5 MB, free: 21.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.645e-05/0.3134, allocations: 73.73 kB / 455.6 MB, free: 21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3135, allocations: 70.31 kB / 455.7 MB, free: 20.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.575e-05/0.3136, allocations: 325.5 kB / 456 MB, free: 20.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.3139, allocations: 117.6 kB / 456.1 MB, free: 20.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003933/0.3143, allocations: 288.3 kB / 456.4 MB, free: 20.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006703/0.315, allocations: 359.7 kB / 456.8 MB, free: 20.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.315, allocations: 1 kB / 456.8 MB, free: 20.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00124/0.3162, allocations: 0.5693 MB / 457.3 MB, free: 19.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.3163, allocations: 12.83 kB / 457.3 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3163, allocations: 4.625 kB / 457.3 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.3165, allocations: 64.28 kB / 457.4 MB, free: 19.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.3168, allocations: 72.28 kB / 457.5 MB, free: 19.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.3181, allocations: 1.718 MB / 459.2 MB, free: 18.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004665/0.3185, allocations: 64.69 kB / 459.3 MB, free: 18.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.3186, allocations: 18.92 kB / 459.3 MB, free: 18.25 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.0006271/0.3192, allocations: 0.5743 MB / 459.8 MB, free: 17.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.3194, allocations: 175 kB / 460 MB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.3206, allocations: 0.5164 MB / 460.5 MB, free: 17.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.3206, allocations: 3.531 kB / 460.5 MB, free: 17.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.3206, allocations: 0 / 460.5 MB, free: 17.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3206, allocations: 1.266 kB / 460.5 MB, free: 17.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002513/0.3231, allocations: 1.69 MB / 462.2 MB, free: 16.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.3231, allocations: 1.844 kB / 462.2 MB, free: 16.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00024/0.3233, allocations: 42.3 kB / 462.3 MB, free: 16.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001668/0.3235, allocations: 54.12 kB / 462.3 MB, free: 16.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.3235, allocations: 7.172 kB / 462.3 MB, free: 16.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/0.3246, allocations: 1.674 MB / 464 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3246, allocations: 3.641 kB / 464 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.326, allocations: 0.7118 MB / 464.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005136/0.3266, allocations: 395.8 kB / 465.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.3267, allocations: 7.172 kB / 465.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.3271, allocations: 46.61 kB / 465.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-05/0.3272, allocations: 28.09 kB / 465.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.3272, allocations: 9.047 kB / 465.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00253/0.3298, allocations: 2.075 MB / 467.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3298, allocations: 0 / 467.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007679/0.3305, allocations: 203 kB / 467.5 MB, free: 13.93 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.001235/0.3318, allocations: 355.6 kB / 467.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3328, allocations: 433.3 kB / 468.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3328, allocations: 5 kB / 468.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004862/0.3333, allocations: 262.2 kB / 468.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00098/0.3342, allocations: 222.9 kB / 468.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.3387, allocations: 3.159 MB / 471.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008848/0.3396, allocations: 1.356 MB / 473.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.3398, allocations: 89.59 kB / 473.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3398, allocations: 0 / 473.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of Templates: time 0.03129/0.3711, allocations: 24.97 MB / 498.3 MB, free: 8.207 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/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_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: 9.083967211889103]