Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001159/0.001159, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001645/0.002804, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001163/0.001163, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001588/0.00275, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9506/0.9506, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08911/1.04, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_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.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.355e-05, allocations: 2.312 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005013/0.005026, allocations: 5.917 MB / 250.4 MB, free: 8.383 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.007808, allocations: 2.333 MB / 252.8 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003085/0.008116, allocations: 23.81 kB / 252.8 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.009194, allocations: 0.6378 MB / 253.4 MB, free: 5.379 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005808/0.009775, allocations: 469.3 kB / 253.9 MB, free: 4.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005827/0.01036, allocations: 407.2 kB / 254.3 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.01141, allocations: 1.335 MB / 255.6 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003999/0.01181, allocations: 304.3 kB / 255.9 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007662/0.01258, allocations: 0.8605 MB / 256.8 MB, free: 2 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004009/0.01298, allocations: 478.9 kB / 257.2 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.665e-05/0.01308, allocations: 112 kB / 257.3 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002015/0.01328, allocations: 175.9 kB / 257.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003177/0.0136, allocations: 0.6078 MB / 258.1 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003249/0.01392, allocations: 422.8 kB / 258.5 MB, free: 232 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.01492, allocations: 1.421 MB / 260 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.505e-05/0.01494, allocations: 0 / 260 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.01494, allocations: 0 / 260 MB, free: 14.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.057e-05/0.01496, allocations: 0 / 260 MB, free: 14.8 MB / 266.7 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.00195/0.01691, allocations: 2.462 MB / 262.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.752e-05/0.01694, allocations: 8.031 kB / 262.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.0171, allocations: 176.8 kB / 262.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000855/0.01795, allocations: 0.8904 MB / 263.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.01807, allocations: 186.4 kB / 263.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-05/0.01814, allocations: 71.92 kB / 263.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006745/0.01881, allocations: 0.9188 MB / 264.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.01883, allocations: 0 / 264.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.776e-05/0.01887, allocations: 28 kB / 264.7 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.01888, allocations: 16 kB / 264.7 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.01908, allocations: 161 kB / 264.9 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.02119, allocations: 2.227 MB / 267.1 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/0.02156, allocations: 251.5 kB / 267.3 MB, free: 7.074 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.02178, allocations: 173.9 kB / 267.5 MB, free: 6.902 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.0218, allocations: 4.281 kB / 267.5 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.02183, allocations: 46.78 kB / 267.6 MB, free: 6.844 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.814e-06/0.02183, allocations: 0 / 267.6 MB, free: 6.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006228/0.02245, allocations: 369.8 kB / 267.9 MB, free: 6.477 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.02248, allocations: 59.41 kB / 268 MB, free: 6.406 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.0238, allocations: 1.821 MB / 269.8 MB, free: 4.543 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.02383, allocations: 29.7 kB / 269.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.02408, allocations: 0.4899 MB / 270.3 MB, free: 4.004 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.146e-05/0.02415, allocations: 126.9 kB / 270.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.043e-05/0.02424, allocations: 102.1 kB / 270.5 MB, free: 3.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.51e-05/0.02431, allocations: 329.8 kB / 270.9 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.125e-05/0.02438, allocations: 40.98 kB / 270.9 MB, free: 3.406 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.0246, allocations: 428.4 kB / 271.3 MB, free: 2.863 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.02481, allocations: 251.9 kB / 271.6 MB, free: 2.566 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.02482, allocations: 4 kB / 271.6 MB, free: 2.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0003683/0.02519, allocations: 345.5 kB / 271.9 MB, free: 2.215 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.0252, allocations: 10.97 kB / 271.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.02521, allocations: 4 kB / 271.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001565/0.02537, allocations: 45.3 kB / 272 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.02569, allocations: 131.8 kB / 272.1 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008579/0.02655, allocations: 1.445 MB / 273.5 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.02675, allocations: 59.64 kB / 273.6 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.02677, allocations: 15.94 kB / 273.6 MB, free: 432 kB / 266.7 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 (cell.cell.limIntegrator.local_reset,cell.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001782/0.02694, allocations: 148.5 kB / 273.8 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.02705, allocations: 107.9 kB / 273.9 MB, free: 164 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.02718, allocations: 158.1 kB / 274 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.02718, allocations: 4 kB / 274 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.02718, allocations: 64 / 274 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.02718, allocations: 11.98 kB / 274 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.02824, allocations: 1.01 MB / 275 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.02825, allocations: 0 / 275 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.02848, allocations: 99.92 kB / 275.1 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.02874, allocations: 238.6 kB / 275.4 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-05/0.02882, allocations: 32.84 kB / 275.4 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.02884, allocations: 16.11 kB / 275.4 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006784/0.02952, allocations: 1.398 MB / 276.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.02952, allocations: 4 kB / 276.8 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000447/0.02997, allocations: 467.6 kB / 277.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.331e-05/0.03005, allocations: 12 kB / 277.3 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.03025, allocations: 39.97 kB / 277.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.35e-05/0.03032, allocations: 43.89 kB / 277.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.03034, allocations: 8 kB / 277.4 MB, free: 12.49 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007867/0.03112, allocations: 1.002 MB / 278.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03112, allocations: 0 / 278.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004696/0.03159, allocations: 267.5 kB / 278.6 MB, free: 11.2 MB / 282.7 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.001381/0.03297, allocations: 0.6283 MB / 279.3 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003763/0.03335, allocations: 328 kB / 279.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.163e-05/0.03337, allocations: 24 kB / 279.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.03355, allocations: 225 kB / 279.8 MB, free: 10.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005916/0.03414, allocations: 334.5 kB / 280.2 MB, free: 9.965 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006461/0.0406, allocations: 2.802 MB / 283 MB, free: 7.102 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.04088, allocations: 395.4 kB / 283.4 MB, free: 6.691 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000288/0.04117, allocations: 170.8 kB / 283.5 MB, free: 6.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004506/0.04162, allocations: 313.2 kB / 283.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.04162, allocations: 0 / 283.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of Templates: time 0.1282/0.1698, allocations: 21.15 MB / 305 MB, free: 27.13 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1077047577127814]