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.001222/0.001222, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001346/0.001346, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.421/1.421, allocations: 230.6 MB / 258.3 MB, free: 8.23 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.001553/0.001553, allocations: 47.94 kB / 379 MB, free: 2.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2357, allocations: 53.37 MB / 432.4 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008117/0.2438, allocations: 5.59 MB / 438 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003561/0.2473, allocations: 1.901 MB / 439.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005985/0.2479, allocations: 23.81 kB / 439.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.2493, allocations: 0.5291 MB / 440.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.2503, allocations: 382 kB / 440.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009848/0.2513, allocations: 386.9 kB / 441.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.2526, allocations: 0.9004 MB / 442.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004844/0.2531, allocations: 229.4 kB / 442.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005808/0.2537, allocations: 374.7 kB / 442.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007497/0.2544, allocations: 466.3 kB / 443.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.2546, allocations: 80 kB / 443.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002854/0.2549, allocations: 120 kB / 443.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005533/0.2555, allocations: 0.5921 MB / 443.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008821/0.2563, allocations: 0.7455 MB / 444.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002289/0.2586, allocations: 2.132 MB / 446.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2586, allocations: 0 / 446.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2586, allocations: 0 / 446.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.972e-05/0.2587, allocations: 0 / 446.8 MB, free: 8.508 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.003973/0.2627, allocations: 2.073 MB / 448.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2627, allocations: 12.03 kB / 448.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003441/0.2631, allocations: 191.7 kB / 449.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/0.2655, allocations: 1.459 MB / 450.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.2656, allocations: 96.39 kB / 450.6 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.126e-05/0.2657, allocations: 44 kB / 450.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.2668, allocations: 0.5893 MB / 451.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2668, allocations: 0 / 451.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.008e-05/0.2668, allocations: 24 kB / 451.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.2669, allocations: 15.98 kB / 451.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007115/0.2676, allocations: 351.7 kB / 451.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004644/0.2722, allocations: 3.187 MB / 454.8 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.2733, allocations: 363.8 kB / 455.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004582/0.2738, allocations: 168.8 kB / 455.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.2738, allocations: 7.984 kB / 455.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.2738, allocations: 38.56 kB / 455.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.753e-06/0.2738, allocations: 0 / 455.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001825/0.2756, allocations: 0.6283 MB / 456 MB, free: 15.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.2758, allocations: 213.6 kB / 456.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00365/0.2794, allocations: 2.901 MB / 459.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.2795, allocations: 33.7 kB / 459.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007659/0.2802, allocations: 0.7861 MB / 459.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.42e-05/0.2803, allocations: 83.3 kB / 460 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.2804, allocations: 69.98 kB / 460.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.2806, allocations: 318 kB / 460.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/0.2809, allocations: 124.6 kB / 460.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/0.2813, allocations: 296.7 kB / 460.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007028/0.2821, allocations: 359.9 kB / 461.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2821, allocations: 0 / 461.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00118/0.2832, allocations: 0.5668 MB / 461.7 MB, free: 9.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.2833, allocations: 8.438 kB / 461.7 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.2833, allocations: 11.98 kB / 461.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.2835, allocations: 56.75 kB / 461.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.2838, allocations: 75.89 kB / 461.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/0.2856, allocations: 1.613 MB / 463.5 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/0.2861, allocations: 63.7 kB / 463.6 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.2861, allocations: 12 kB / 463.6 MB, free: 7.094 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.0007919/0.2869, allocations: 0.5834 MB / 464.1 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.2872, allocations: 178.8 kB / 464.3 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.2885, allocations: 0.5145 MB / 464.8 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2885, allocations: 0 / 464.8 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.2885, allocations: 3.938 kB / 464.8 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2885, allocations: 0 / 464.8 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.2916, allocations: 1.664 MB / 466.5 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.2916, allocations: 0 / 466.5 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.2918, allocations: 51.91 kB / 466.6 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.292, allocations: 48.86 kB / 466.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.292, allocations: 4 kB / 466.6 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.2936, allocations: 1.566 MB / 468.2 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2936, allocations: 0 / 468.2 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.2951, allocations: 0.7251 MB / 468.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007598/0.2959, allocations: 318.7 kB / 469.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/0.296, allocations: 7.984 kB / 469.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.2965, allocations: 39.95 kB / 469.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.2966, allocations: 31.95 kB / 469.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.2966, allocations: 8 kB / 469.3 MB, free: 1.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002967/0.2996, allocations: 2.075 MB / 471.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2996, allocations: 0 / 471.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007829/0.3003, allocations: 207.6 kB / 471.6 MB, free: 14.84 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.001293/0.3016, allocations: 364.2 kB / 471.9 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.3027, allocations: 424.9 kB / 472.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3027, allocations: 0 / 472.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.3032, allocations: 263.2 kB / 472.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.3043, allocations: 229.5 kB / 472.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005621/0.3099, allocations: 3.156 MB / 476 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.3112, allocations: 1.354 MB / 477.3 MB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/0.3115, allocations: 87.42 kB / 477.4 MB, free: 9.004 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3115, allocations: 0 / 477.4 MB, free: 9.004 MB / 382.1 MB Notification: Performance of Templates: time 0.03894/0.3505, allocations: 24.98 MB / 0.4906 GB, free: 52 kB / 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 -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: 8.540449348976836]