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.001748/0.001748, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002052/0.002052, allocations: 213.1 kB / 24.48 MB, free: 3.957 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.451/1.451, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.001497/0.001497, allocations: 51.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.244, allocations: 53.36 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007475/0.2515, allocations: 4.965 MB / 437.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0034/0.2549, allocations: 1.792 MB / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004272/0.2553, allocations: 15.88 kB / 439.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.2564, allocations: 0.5096 MB / 439.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007911/0.2572, allocations: 386 kB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008506/0.2581, allocations: 389.7 kB / 440.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.2592, allocations: 0.9003 MB / 441.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004531/0.2596, allocations: 229.4 kB / 441.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004692/0.2601, allocations: 378.7 kB / 441.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.2607, allocations: 462.4 kB / 442.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.2608, allocations: 80 kB / 442.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002296/0.261, allocations: 123.9 kB / 442.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005354/0.2615, allocations: 0.5921 MB / 443.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005723/0.2621, allocations: 0.5435 MB / 443.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002196/0.2643, allocations: 2.152 MB / 445.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2643, allocations: 0 / 445.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2643, allocations: 0 / 445.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.281e-05/0.2643, allocations: 0 / 445.8 MB, free: 9.191 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.003582/0.2679, allocations: 2.08 MB / 447.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.268, allocations: 16.03 kB / 447.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.2682, allocations: 195.7 kB / 448.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002555/0.2708, allocations: 1.451 MB / 449.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.2709, allocations: 96.41 kB / 449.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/0.271, allocations: 48 kB / 449.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.2723, allocations: 0.8325 MB / 450.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2723, allocations: 4 kB / 450.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.2723, allocations: 20 kB / 450.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.2723, allocations: 15.94 kB / 450.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007275/0.2731, allocations: 347.8 kB / 450.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004737/0.2778, allocations: 2.854 MB / 453.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.279, allocations: 350.5 kB / 454.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004888/0.2794, allocations: 172.8 kB / 454.2 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.2795, allocations: 7.984 kB / 454.3 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.2795, allocations: 34.56 kB / 454.3 MB, free: 392 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.814e-06/0.2795, allocations: 0 / 454.3 MB, free: 392 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001991/0.2815, allocations: 0.6252 MB / 454.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.2816, allocations: 213.6 kB / 455.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003908/0.2856, allocations: 2.869 MB / 458 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.2856, allocations: 33.7 kB / 458 MB, free: 12.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008151/0.2864, allocations: 0.7974 MB / 458.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.032e-05/0.2865, allocations: 71.38 kB / 458.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.2866, allocations: 73.98 kB / 459 MB, free: 11.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.2868, allocations: 318 kB / 459.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000362/0.2872, allocations: 124.6 kB / 459.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005752/0.2878, allocations: 446.9 kB / 459.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007336/0.2885, allocations: 355.9 kB / 460.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2885, allocations: 0 / 460.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001448/0.2899, allocations: 0.567 MB / 460.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.29, allocations: 4 kB / 460.7 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.29, allocations: 4 kB / 460.8 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002781/0.2902, allocations: 61.02 kB / 460.8 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002997/0.2905, allocations: 75.83 kB / 460.9 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.2923, allocations: 1.594 MB / 462.5 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006068/0.293, allocations: 63.7 kB / 462.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.293, allocations: 12 kB / 462.6 MB, free: 7.719 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.0008724/0.2939, allocations: 0.5796 MB / 463.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.2941, allocations: 170.8 kB / 463.3 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.2954, allocations: 0.5061 MB / 463.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2954, allocations: 3.938 kB / 463.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.2954, allocations: 0 / 463.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2954, allocations: 0 / 463.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.2984, allocations: 1.427 MB / 465.2 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2984, allocations: 0 / 465.2 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/0.2987, allocations: 47.91 kB / 465.3 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.2989, allocations: 48.77 kB / 465.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.2989, allocations: 4 kB / 465.3 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/0.3005, allocations: 1.547 MB / 466.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3005, allocations: 3.938 kB / 466.9 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.3022, allocations: 0.704 MB / 467.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008338/0.303, allocations: 314.7 kB / 467.9 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.3031, allocations: 8 kB / 467.9 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000425/0.3036, allocations: 43.95 kB / 467.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.221e-05/0.3037, allocations: 31.94 kB / 468 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.3037, allocations: 12 kB / 468 MB, free: 2.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002906/0.3066, allocations: 2.043 MB / 470 MB, free: 12 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3066, allocations: 0 / 470 MB, free: 12 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008367/0.3074, 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.001414/0.3088, allocations: 390.2 kB / 470.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.31, allocations: 428.7 kB / 471 MB, free: 15.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.31, allocations: 4.062 kB / 471 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005524/0.3105, allocations: 270.5 kB / 471.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.3115, allocations: 198.3 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.005409/0.317, allocations: 3.151 MB / 474.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009577/0.3179, allocations: 0.7627 MB / 475.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/0.3182, allocations: 79.44 kB / 475.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of SimCode: time 1.342e-06/0.3182, allocations: 0 / 475.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of Templates: time 0.0377/0.3559, allocations: 25.1 MB / 0.4889 GB, free: 1.496 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 -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.764883686002577]