Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001535/0.001535, allocations: 119.3 kB / 21.18 MB, free: 0.6289 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.001711/0.001711, allocations: 206.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 230.5 MB / 258.1 MB, free: 8.129 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-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 75.81 kB / 378.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2735, allocations: 53.31 MB / 432 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005852/0.2794, allocations: 4.086 MB / 436.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003915/0.2833, allocations: 2.089 MB / 438.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003969/0.2837, allocations: 8 kB / 438.2 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.2851, allocations: 0.5913 MB / 438.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007568/0.2858, allocations: 394.1 kB / 439.2 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00072/0.2865, allocations: 291.1 kB / 439.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.2877, allocations: 0.9819 MB / 440.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004021/0.2881, allocations: 228.5 kB / 440.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004063/0.2885, allocations: 394.7 kB / 441.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005946/0.2891, allocations: 0.5061 MB / 441.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.2892, allocations: 80 kB / 441.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002464/0.2894, allocations: 136 kB / 441.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000399/0.2898, allocations: 478.6 kB / 442.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005605/0.2904, allocations: 0.629 MB / 442.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001786/0.2922, allocations: 1.762 MB / 444.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.183e-05/0.2922, allocations: 4 kB / 444.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2922, allocations: 0 / 444.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.2922, allocations: 4 kB / 444.6 MB, free: 10.72 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.00302/0.2952, allocations: 1.875 MB / 446.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2953, allocations: 8.031 kB / 446.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/0.2955, allocations: 167.9 kB / 446.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001885/0.2974, allocations: 1.194 MB / 447.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.2975, allocations: 92.97 kB / 448 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.2976, allocations: 55.89 kB / 448 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.2987, allocations: 0.6595 MB / 448.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.2987, allocations: 0 / 448.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.7e-05/0.2988, allocations: 24 kB / 448.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.2988, allocations: 15.94 kB / 448.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007943/0.2996, allocations: 439.7 kB / 449.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004359/0.304, allocations: 2.88 MB / 452 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009779/0.3049, allocations: 398.5 kB / 452.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006375/0.3056, allocations: 289.2 kB / 452.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.3056, allocations: 4 kB / 452.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.3056, allocations: 38.56 kB / 452.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.3056, allocations: 0 / 452.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001887/0.3075, allocations: 0.78 MB / 453.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/0.3077, allocations: 269 kB / 453.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/0.3105, allocations: 2.243 MB / 456 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.3105, allocations: 29.7 kB / 456.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006176/0.3111, allocations: 0.6513 MB / 456.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/0.3112, allocations: 111.1 kB / 456.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.3114, allocations: 78.03 kB / 456.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3115, allocations: 321.9 kB / 457.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.3119, allocations: 168.6 kB / 457.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004525/0.3123, allocations: 296.8 kB / 457.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000704/0.313, allocations: 396.7 kB / 458.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.313, allocations: 0 / 458.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001351/0.3144, allocations: 0.6451 MB / 458.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.3144, allocations: 11.98 kB / 458.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3144, allocations: 3.938 kB / 458.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002934/0.3147, allocations: 64.95 kB / 458.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.3151, allocations: 91.88 kB / 458.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001905/0.317, allocations: 1.775 MB / 460.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004481/0.3174, allocations: 55.67 kB / 460.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.3175, allocations: 19.94 kB / 460.7 MB, free: 9.988 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.0006727/0.3181, allocations: 485.7 kB / 461.2 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/0.3183, allocations: 143.1 kB / 461.3 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002248/0.3186, allocations: 169.5 kB / 461.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3186, allocations: 8.062 kB / 461.5 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3186, allocations: 0 / 461.5 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3186, allocations: 0 / 461.5 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/0.3214, allocations: 1.661 MB / 463.2 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3214, allocations: 0 / 463.2 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.3218, allocations: 71.95 kB / 463.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.322, allocations: 56.81 kB / 463.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.322, allocations: 11.94 kB / 463.3 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001698/0.3237, allocations: 1.717 MB / 465 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3237, allocations: 7.969 kB / 465 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.3252, allocations: 0.7905 MB / 465.8 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006362/0.3258, allocations: 352 kB / 466.2 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.3259, allocations: 8.125 kB / 466.2 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004497/0.3264, allocations: 47.95 kB / 466.2 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.582e-05/0.3265, allocations: 31.89 kB / 466.3 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.3265, allocations: 12 kB / 466.3 MB, free: 4.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002131/0.3286, allocations: 1.612 MB / 467.9 MB, free: 2.555 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3286, allocations: 0 / 467.9 MB, free: 2.555 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007212/0.3293, allocations: 207.7 kB / 468.1 MB, free: 2.352 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.001667/0.331, allocations: 471.4 kB / 468.5 MB, free: 2.082 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.3321, allocations: 494.6 kB / 469 MB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3321, allocations: 0 / 469 MB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005399/0.3326, allocations: 302.4 kB / 469.3 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009227/0.3336, allocations: 213.1 kB / 469.5 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.3378, allocations: 2.736 MB / 472.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.3389, allocations: 1.249 MB / 473.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.3391, allocations: 79.42 kB / 473.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3391, allocations: 0 / 473.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of Templates: time 0.03513/0.3742, allocations: 21.1 MB / 494.7 MB, free: 7.875 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.701756212394685]