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.001386/0.001386, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001545/0.001545, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.512/1.512, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.00233/0.00233, allocations: 68.75 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3204, allocations: 53.36 MB / 432.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006811/0.3272, allocations: 4.08 MB / 436.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004188/0.3314, allocations: 2.092 MB / 438.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004549/0.3319, allocations: 19.94 kB / 438.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.3334, allocations: 0.5872 MB / 439.2 MB, free: 196 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009333/0.3343, allocations: 394 kB / 439.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007822/0.3351, allocations: 294.7 kB / 439.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.3363, allocations: 0.9897 MB / 440.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004401/0.3368, allocations: 225 kB / 441.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00047/0.3373, allocations: 398.7 kB / 441.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00067/0.3379, allocations: 0.51 MB / 442 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.3381, allocations: 80 kB / 442 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003061/0.3384, allocations: 140 kB / 442.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004476/0.3388, allocations: 478.6 kB / 442.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006162/0.3394, allocations: 0.6329 MB / 443.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002105/0.3415, allocations: 1.77 MB / 445 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3415, allocations: 0 / 445 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3415, allocations: 0 / 445 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.3416, allocations: 0 / 445 MB, free: 10.3 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.00348/0.345, allocations: 1.803 MB / 446.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3451, allocations: 8.031 kB / 446.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002657/0.3454, allocations: 167.9 kB / 447 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.3473, allocations: 1.134 MB / 448.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.3475, allocations: 174.1 kB / 448.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.943e-05/0.3476, allocations: 55.89 kB / 448.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.3489, allocations: 0.6673 MB / 449 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.3489, allocations: 0 / 449 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.026e-05/0.349, allocations: 24 kB / 449.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.349, allocations: 15.98 kB / 449.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009169/0.3499, allocations: 435.7 kB / 449.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004749/0.3547, allocations: 2.816 MB / 452.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.3558, allocations: 403.2 kB / 452.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006817/0.3564, allocations: 292.7 kB / 453 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.449e-05/0.3565, allocations: 4 kB / 453 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.3565, allocations: 38.56 kB / 453 MB, free: 2.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.764e-06/0.3565, allocations: 0 / 453 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002044/0.3586, allocations: 0.693 MB / 453.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/0.3587, allocations: 273 kB / 454 MB, free: 1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003215/0.362, allocations: 2.246 MB / 456.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.362, allocations: 37.7 kB / 456.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000654/0.3627, allocations: 0.6357 MB / 456.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3628, allocations: 119 kB / 457 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.3629, allocations: 74.03 kB / 457.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3631, allocations: 333.8 kB / 457.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003631/0.3634, allocations: 156.7 kB / 457.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004809/0.3639, allocations: 308.5 kB / 457.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007345/0.3647, allocations: 392.7 kB / 458.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3647, allocations: 0 / 458.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001468/0.3661, allocations: 0.6453 MB / 458.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.3662, allocations: 8 kB / 458.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3662, allocations: 11.88 kB / 458.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002935/0.3665, allocations: 64.94 kB / 459 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004175/0.3669, allocations: 87.88 kB / 459.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002031/0.3689, allocations: 1.667 MB / 460.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.3694, allocations: 59.8 kB / 460.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.3694, allocations: 12 kB / 460.8 MB, free: 9.926 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.0007086/0.3701, allocations: 485.6 kB / 461.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.3703, allocations: 147 kB / 461.4 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.3706, allocations: 161.5 kB / 461.6 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3706, allocations: 4 kB / 461.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.3706, allocations: 0 / 461.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3706, allocations: 0 / 461.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.3736, allocations: 1.637 MB / 463.2 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3736, allocations: 0 / 463.2 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003452/0.3739, allocations: 67.89 kB / 463.3 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001989/0.3741, allocations: 64.86 kB / 463.4 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.3741, allocations: 8 kB / 463.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.3762, allocations: 1.625 MB / 465 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3762, allocations: 3.938 kB / 465 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.3779, allocations: 0.7991 MB / 465.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005358/0.3785, allocations: 270.8 kB / 466.1 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.3786, allocations: 8 kB / 466.1 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004618/0.379, allocations: 47.95 kB / 466.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/0.3791, allocations: 27.95 kB / 466.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.3791, allocations: 11.98 kB / 466.2 MB, free: 4.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00238/0.3815, allocations: 1.608 MB / 467.8 MB, free: 2.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3815, allocations: 0 / 467.8 MB, free: 2.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007239/0.3822, allocations: 211.7 kB / 468 MB, free: 2.543 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.001802/0.384, allocations: 481.9 kB / 468.4 MB, free: 2.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3852, allocations: 494.8 kB / 468.9 MB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.3852, allocations: 4.125 kB / 468.9 MB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005733/0.3857, allocations: 306.4 kB / 469.2 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3868, allocations: 213.2 kB / 469.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00423/0.391, allocations: 2.666 MB / 472.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.3925, allocations: 1.26 MB / 473.4 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005008/0.393, allocations: 215.8 kB / 473.6 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.3933, allocations: 79.42 kB / 473.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3933, allocations: 0 / 473.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of Templates: time 0.03/0.4233, allocations: 14.47 MB / 488.1 MB, free: 14.59 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.283531414344907]