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.001714/0.001714, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002108/0.002108, allocations: 211.4 kB / 24.48 MB, free: 3.934 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.422/1.422, allocations: 230.5 MB / 258.1 MB, free: 7.781 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.001981/0.001981, allocations: 63.89 kB / 379 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2444, allocations: 53.41 MB / 432.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007891/0.2523, allocations: 5.408 MB / 437.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003955/0.2563, allocations: 2.177 MB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.2567, allocations: 19.88 kB / 440 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.2582, allocations: 0.602 MB / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008997/0.2591, allocations: 465.5 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00087/0.2599, allocations: 418.9 kB / 441.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001566/0.2615, allocations: 1.313 MB / 442.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005358/0.262, allocations: 286.4 kB / 443 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006681/0.2627, allocations: 0.5061 MB / 443.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007419/0.2635, allocations: 0.5642 MB / 444.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.2636, allocations: 120 kB / 444.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003352/0.264, allocations: 179.9 kB / 444.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005627/0.2645, allocations: 0.6583 MB / 445.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006982/0.2652, allocations: 0.6641 MB / 445.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002743/0.268, allocations: 2.658 MB / 448.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.268, allocations: 11.94 kB / 448.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.268, allocations: 4 kB / 448.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.327e-05/0.268, allocations: 0 / 448.4 MB, free: 6.449 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.00449/0.2725, allocations: 2.362 MB / 450.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.2725, allocations: 8.031 kB / 450.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003743/0.2729, allocations: 223.5 kB / 451 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00303/0.2759, allocations: 1.639 MB / 452.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.2762, allocations: 194.1 kB / 452.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.2763, allocations: 63.95 kB / 452.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.278, allocations: 1.177 MB / 454.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.278, allocations: 0 / 454.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.209e-05/0.2781, allocations: 28 kB / 454.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.2781, allocations: 16 kB / 454.1 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.2793, allocations: 0.5517 MB / 454.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006099/0.2854, allocations: 3.49 MB / 458.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.2867, allocations: 0.5038 MB / 458.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007877/0.2875, allocations: 352.7 kB / 459 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.2875, allocations: 4.281 kB / 459 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/0.2876, allocations: 42.78 kB / 459 MB, free: 11.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.594e-06/0.2876, allocations: 4 kB / 459 MB, free: 11.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002457/0.29, allocations: 0.8697 MB / 459.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001632/0.2902, allocations: 269 kB / 460.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004469/0.2947, allocations: 3.108 MB / 463.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.387e-05/0.2948, allocations: 37.7 kB / 463.3 MB, free: 7.027 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008907/0.2956, allocations: 0.8689 MB / 464.2 MB, free: 6.152 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.2958, allocations: 119 kB / 464.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.2959, allocations: 102.1 kB / 464.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2961, allocations: 322 kB / 464.7 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005104/0.2966, allocations: 212.9 kB / 464.9 MB, free: 5.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007507/0.2974, allocations: 0.585 MB / 465.5 MB, free: 4.691 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.2984, allocations: 0.5244 MB / 466 MB, free: 4.117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.2984, allocations: 0 / 466 MB, free: 4.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001722/0.3001, allocations: 0.774 MB / 466.8 MB, free: 3.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3001, allocations: 4 kB / 466.8 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3001, allocations: 7.938 kB / 466.8 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.3005, allocations: 73 kB / 466.9 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.301, allocations: 115.9 kB / 467 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.3029, allocations: 1.656 MB / 468.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007273/0.3037, allocations: 63.7 kB / 468.7 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.3037, allocations: 20.08 kB / 468.7 MB, free: 1.293 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.001085/0.3048, allocations: 0.6648 MB / 469.4 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003759/0.3052, allocations: 182.8 kB / 469.6 MB, free: 452 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004486/0.3056, allocations: 218.2 kB / 469.8 MB, free: 232 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3056, allocations: 7.938 kB / 469.8 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.3056, allocations: 3.938 kB / 469.8 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3056, allocations: 7.922 kB / 469.8 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00367/0.3093, allocations: 1.836 MB / 471.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3093, allocations: 0 / 471.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/0.3097, allocations: 83.89 kB / 471.7 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000192/0.3099, allocations: 56.81 kB / 471.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.3099, allocations: 12 kB / 471.8 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.3116, allocations: 1.61 MB / 473.4 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3116, allocations: 4.031 kB / 473.4 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/0.3136, allocations: 0.9797 MB / 474.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008996/0.3145, allocations: 366.7 kB / 474.8 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.3148, allocations: 12 kB / 474.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.3154, allocations: 59.88 kB / 474.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.3155, allocations: 39.94 kB / 474.9 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.3155, allocations: 15.98 kB / 474.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003714/0.3192, allocations: 2.211 MB / 477.1 MB, free: 8.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3192, allocations: 0 / 477.1 MB, free: 8.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00104/0.3203, allocations: 263.5 kB / 477.3 MB, free: 8.473 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.001922/0.3222, allocations: 0.4885 MB / 477.8 MB, free: 8.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.3236, allocations: 0.5846 MB / 478.4 MB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3236, allocations: 4 kB / 478.4 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007298/0.3244, allocations: 359.4 kB / 478.8 MB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.3257, allocations: 246.8 kB / 479 MB, free: 6.941 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006869/0.3326, allocations: 3.718 MB / 482.7 MB, free: 3.172 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001321/0.3339, allocations: 0.8963 MB / 483.6 MB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000424/0.3344, allocations: 91.44 kB / 483.7 MB, free: 2.156 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3344, allocations: 4 kB / 483.7 MB, free: 2.152 MB / 382.1 MB Notification: Performance of Templates: time 0.04562/0.38, allocations: 29.78 MB / 0.5015 GB, free: 4.391 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.316483580973]