Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001727/0.001727, allocations: 116 kB / 18.45 MB, free: 4.562 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.002058/0.002058, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.654/1.654, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.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_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_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 51.92 kB / 374.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1034, allocations: 53.34 MB / 427.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006452/0.1099, allocations: 4.042 MB / 431.5 MB, free: 228 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.204/0.3139, allocations: 2.076 MB / 433.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004208/0.3143, allocations: 16.16 kB / 433.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.3158, allocations: 0.5916 MB / 434.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007217/0.3165, allocations: 391.4 kB / 434.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007011/0.3172, allocations: 282.7 kB / 434.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001121/0.3183, allocations: 0.979 MB / 435.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004075/0.3187, allocations: 261.9 kB / 436.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005317/0.3193, allocations: 401.7 kB / 436.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006319/0.3199, allocations: 0.5125 MB / 437 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.32, allocations: 79.34 kB / 437.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002867/0.3203, allocations: 135.4 kB / 437.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003959/0.3207, allocations: 478.9 kB / 437.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005356/0.3212, allocations: 0.6316 MB / 438.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002141/0.3234, allocations: 1.766 MB / 440.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3234, allocations: 5.094 kB / 440.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3234, allocations: 0 / 440.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.054e-05/0.3234, allocations: 0 / 440.1 MB, free: 6.332 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.003155/0.3266, allocations: 1.875 MB / 442 MB, free: 5.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3266, allocations: 8.906 kB / 442 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002762/0.3269, allocations: 169.5 kB / 442.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.3288, allocations: 1.191 MB / 443.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.3289, allocations: 98.58 kB / 443.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.511e-05/0.329, allocations: 55.39 kB / 443.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.3302, allocations: 0.6626 MB / 444.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3302, allocations: 1.344 kB / 444.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/0.3302, allocations: 21.22 kB / 444.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.3303, allocations: 13.53 kB / 444.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007984/0.3311, allocations: 438.5 kB / 444.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004596/0.3357, allocations: 2.873 MB / 447.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009835/0.3366, allocations: 391.5 kB / 447.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006499/0.3373, allocations: 291.8 kB / 448.1 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.3373, allocations: 3.156 kB / 448.1 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.3373, allocations: 38.52 kB / 448.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.345e-06/0.3373, allocations: 1.344 kB / 448.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002041/0.3394, allocations: 0.7825 MB / 449 MB, free: 1.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.004e-05/0.3395, allocations: 264.1 kB / 449.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00335/0.3428, allocations: 2.246 MB / 451.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.242e-05/0.3429, allocations: 32.45 kB / 451.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004481/0.3433, allocations: 0.6435 MB / 452.1 MB, free: 32 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.3435, allocations: 115.9 kB / 452.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.3436, allocations: 80.36 kB / 452.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3438, allocations: 324.9 kB / 452.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.3441, allocations: 163.1 kB / 452.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004738/0.3446, allocations: 299.3 kB / 453.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007541/0.3454, allocations: 391.2 kB / 453.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3454, allocations: 0.6875 kB / 453.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001595/0.347, allocations: 0.6554 MB / 454.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.347, allocations: 5.062 kB / 454.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.347, allocations: 7 kB / 454.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003323/0.3474, allocations: 63.81 kB / 454.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000394/0.3477, allocations: 96.05 kB / 454.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.3499, allocations: 1.761 MB / 456.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007604/0.3507, allocations: 52.22 kB / 456.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/0.3507, allocations: 21.06 kB / 456.1 MB, free: 13.11 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.0009753/0.3517, allocations: 491.9 kB / 456.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.352, allocations: 141.9 kB / 456.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000276/0.3522, allocations: 167 kB / 456.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3523, allocations: 3.281 kB / 456.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3523, allocations: 1.062 kB / 456.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3523, allocations: 5.547 kB / 456.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.3554, allocations: 1.656 MB / 458.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3554, allocations: 1 kB / 458.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003616/0.3558, allocations: 67.2 kB / 458.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002117/0.356, allocations: 63.62 kB / 458.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.356, allocations: 7.562 kB / 458.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.3578, allocations: 1.718 MB / 460.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3578, allocations: 9.312 kB / 460.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.3596, allocations: 0.8012 MB / 461.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006638/0.3602, allocations: 342.1 kB / 461.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3604, allocations: 12.75 kB / 461.6 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.3609, allocations: 43.58 kB / 461.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.361, allocations: 28.7 kB / 461.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.361, allocations: 11.12 kB / 461.7 MB, free: 9.059 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00249/0.3635, allocations: 1.611 MB / 463.3 MB, free: 8.312 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3635, allocations: 4 kB / 463.3 MB, free: 8.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008778/0.3644, allocations: 208.1 kB / 463.5 MB, free: 8.27 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.001819/0.3662, allocations: 469.8 kB / 464 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.3674, allocations: 497 kB / 464.4 MB, free: 7.797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3674, allocations: 1.156 kB / 464.4 MB, free: 7.797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005634/0.368, allocations: 302.5 kB / 464.7 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.3691, allocations: 223.2 kB / 465 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004839/0.3739, allocations: 2.73 MB / 467.7 MB, free: 5.965 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.375, allocations: 1.248 MB / 468.9 MB, free: 4.996 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.3754, allocations: 72.72 kB / 469 MB, free: 4.984 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3754, allocations: 0 / 469 MB, free: 4.984 MB / 366.1 MB Notification: Performance of Templates: time 0.03434/0.4097, allocations: 21.13 MB / 490.1 MB, free: 0.8711 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.345176664995961]