Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.00134/0.00134, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001417/0.001417, allocations: 217.5 kB / 24.5 MB, free: 4.133 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.448/1.448, allocations: 230.5 MB / 258.1 MB, free: 8.004 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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 63.91 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2565, allocations: 53.4 MB / 432.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005877/0.2623, allocations: 4.083 MB / 436.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003511/0.2659, allocations: 2.093 MB / 438.6 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003238/0.2662, allocations: 15.88 kB / 438.6 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.2675, allocations: 0.5873 MB / 439.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007383/0.2682, allocations: 398 kB / 439.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006398/0.2689, allocations: 287.1 kB / 439.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.2701, allocations: 0.9858 MB / 440.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003966/0.2705, allocations: 233 kB / 441.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004766/0.2709, allocations: 394.7 kB / 441.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006314/0.2716, allocations: 0.5139 MB / 442 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.2717, allocations: 80 kB / 442.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002517/0.2719, allocations: 140 kB / 442.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003963/0.2723, allocations: 478.6 kB / 442.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005937/0.2729, allocations: 0.6251 MB / 443.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001937/0.2749, allocations: 1.774 MB / 445.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2749, allocations: 0 / 445.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2749, allocations: 4 kB / 445.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.561e-05/0.2749, allocations: 0 / 445.1 MB, free: 10.08 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003091/0.278, allocations: 1.8 MB / 446.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.278, allocations: 8.031 kB / 446.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002524/0.2783, allocations: 171.9 kB / 447 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.2802, allocations: 1.134 MB / 448.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.2804, allocations: 166.1 kB / 448.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.124e-05/0.2804, allocations: 52.33 kB / 448.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.2816, allocations: 0.6675 MB / 449.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.2816, allocations: 0 / 449.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.574e-05/0.2817, allocations: 24 kB / 449.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.2817, allocations: 12 kB / 449.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008154/0.2825, allocations: 435.7 kB / 449.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004494/0.287, allocations: 2.828 MB / 452.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009748/0.288, allocations: 401.3 kB / 452.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006677/0.2886, allocations: 295.7 kB / 453 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.2887, allocations: 7.984 kB / 453 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.2887, allocations: 38.56 kB / 453.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.2887, allocations: 0 / 453.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.00195/0.2906, allocations: 0.6976 MB / 453.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/0.2908, allocations: 277 kB / 454 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003104/0.2939, allocations: 2.246 MB / 456.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.274e-05/0.294, allocations: 33.7 kB / 456.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006451/0.2946, allocations: 0.6396 MB / 457 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.2948, allocations: 115 kB / 457.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.2949, allocations: 74.03 kB / 457.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.2951, allocations: 322 kB / 457.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.2954, allocations: 168.6 kB / 457.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.2959, allocations: 296.6 kB / 457.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007267/0.2966, allocations: 400.6 kB / 458.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2966, allocations: 3.938 kB / 458.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001482/0.2981, allocations: 0.6451 MB / 459 MB, free: 11.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.2982, allocations: 4 kB / 459 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.2982, allocations: 4 kB / 459 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/0.2985, allocations: 72.81 kB / 459 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.2989, allocations: 87.83 kB / 459.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.3007, allocations: 1.675 MB / 460.8 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005655/0.3013, allocations: 51.7 kB / 460.8 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/0.3013, allocations: 16 kB / 460.9 MB, free: 9.695 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.000693/0.302, allocations: 481.6 kB / 461.3 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/0.3022, allocations: 143.2 kB / 461.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.3025, allocations: 165.5 kB / 461.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3025, allocations: 8.047 kB / 461.6 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3025, allocations: 11.94 kB / 461.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3025, allocations: 0 / 461.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002836/0.3053, allocations: 1.629 MB / 463.3 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3053, allocations: 4 kB / 463.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.3057, allocations: 68.02 kB / 463.4 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002019/0.3059, allocations: 60.75 kB / 463.4 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.3059, allocations: 8 kB / 463.4 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.3076, allocations: 1.617 MB / 465 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3076, allocations: 3.938 kB / 465 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.3091, allocations: 0.7949 MB / 465.8 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006524/0.3098, allocations: 270.9 kB / 466.1 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.3099, allocations: 12.06 kB / 466.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.3104, allocations: 47.95 kB / 466.2 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.975e-05/0.3105, allocations: 27.95 kB / 466.2 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.3105, allocations: 15.98 kB / 466.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002213/0.3127, allocations: 1.612 MB / 467.8 MB, free: 2.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3127, allocations: 0 / 467.8 MB, free: 2.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000739/0.3134, allocations: 207.7 kB / 468 MB, free: 2.312 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.001748/0.3152, allocations: 487.1 kB / 468.5 MB, free: 2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.3162, allocations: 494.5 kB / 469 MB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.3162, allocations: 4 kB / 469 MB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005338/0.3168, allocations: 298.5 kB / 469.3 MB, free: 1.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008654/0.3176, allocations: 194.3 kB / 469.5 MB, free: 1.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.3218, allocations: 2.737 MB / 472.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000967/0.3228, allocations: 1.256 MB / 473.5 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/0.3231, allocations: 75.42 kB / 473.5 MB, free: 12.87 MB / 382.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3231, allocations: 0 / 473.5 MB, free: 12.87 MB / 382.1 MB Notification: Performance of Templates: time 0.03099/0.3541, allocations: 21.11 MB / 494.6 MB, free: 7.793 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.196964466944337]