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.008125/0.008125, allocations: 108.6 kB / 21.98 MB, free: 5.227 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.002074/0.002074, allocations: 216.4 kB / 25.29 MB, free: 3.203 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.461/1.461, allocations: 230.6 MB / 259 MB, free: 8.02 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.001907/0.001907, allocations: 64.77 kB / 379.8 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2852, allocations: 53.36 MB / 433.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006035/0.2912, allocations: 4.081 MB / 437.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003752/0.295, allocations: 2.093 MB / 439.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004349/0.2954, allocations: 15.94 kB / 439.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.2968, allocations: 0.5911 MB / 439.9 MB, free: 152 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008493/0.2976, allocations: 394 kB / 440.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.2983, allocations: 290.7 kB / 440.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.2996, allocations: 0.9897 MB / 441.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000426/0.3001, allocations: 233 kB / 441.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004988/0.3006, allocations: 390.7 kB / 442.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006456/0.3012, allocations: 0.5099 MB / 442.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.3013, allocations: 80 kB / 442.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002617/0.3016, allocations: 140 kB / 442.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004034/0.302, allocations: 478.6 kB / 443.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006016/0.3026, allocations: 0.629 MB / 444 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.3045, allocations: 1.778 MB / 445.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3045, allocations: 0 / 445.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3045, allocations: 0 / 445.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.3045, allocations: 0 / 445.8 MB, free: 10.26 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.003089/0.3076, allocations: 1.8 MB / 447.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.3077, allocations: 8.031 kB / 447.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002572/0.3079, allocations: 167.9 kB / 447.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.3098, allocations: 1.126 MB / 448.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.3099, allocations: 105 kB / 449 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.31, allocations: 55.89 kB / 449.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.3112, allocations: 0.6634 MB / 449.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.3112, allocations: 0 / 449.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.446e-05/0.3113, allocations: 24 kB / 449.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.3113, allocations: 12 kB / 449.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008307/0.3121, allocations: 435.7 kB / 450.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004666/0.3168, allocations: 2.828 MB / 453 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009818/0.3178, allocations: 403.2 kB / 453.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006495/0.3184, allocations: 288.7 kB / 453.7 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.604e-05/0.3185, allocations: 7.984 kB / 453.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.3185, allocations: 38.56 kB / 453.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.3185, allocations: 0 / 453.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001906/0.3204, allocations: 0.693 MB / 454.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/0.3206, allocations: 269 kB / 454.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.3237, allocations: 2.243 MB / 456.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.251e-05/0.3238, allocations: 37.7 kB / 457 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006003/0.3244, allocations: 0.6474 MB / 457.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.3245, allocations: 107 kB / 457.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.3246, allocations: 82.02 kB / 457.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3247, allocations: 321.9 kB / 458.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003561/0.3251, allocations: 160.6 kB / 458.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000479/0.3256, allocations: 308.5 kB / 458.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007058/0.3263, allocations: 392.7 kB / 459 MB, free: 12.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.3263, allocations: 0 / 459 MB, free: 12.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001445/0.3277, allocations: 0.6453 MB / 459.6 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3278, allocations: 4 kB / 459.6 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.3278, allocations: 11.88 kB / 459.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.3281, allocations: 60.94 kB / 459.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003805/0.3284, allocations: 95.88 kB / 459.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.3303, allocations: 1.663 MB / 461.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005538/0.3308, allocations: 63.97 kB / 461.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.3309, allocations: 19.98 kB / 461.5 MB, free: 9.973 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.0006864/0.3316, allocations: 481.5 kB / 462 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/0.3318, allocations: 147 kB / 462.1 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/0.332, allocations: 165.5 kB / 462.3 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.332, allocations: 4 kB / 462.3 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.332, allocations: 0 / 462.3 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.332, allocations: 3.984 kB / 462.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.3348, allocations: 1.634 MB / 463.9 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3349, allocations: 0 / 463.9 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.3352, allocations: 71.89 kB / 464 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002067/0.3354, allocations: 64.88 kB / 464.1 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.3354, allocations: 4 kB / 464.1 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001683/0.3371, allocations: 1.617 MB / 465.7 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3371, allocations: 4.062 kB / 465.7 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.3387, allocations: 0.8069 MB / 466.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005657/0.3392, allocations: 262.9 kB / 466.8 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.3394, allocations: 11.98 kB / 466.8 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/0.3398, allocations: 55.89 kB / 466.8 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.454e-05/0.3399, allocations: 27.95 kB / 466.8 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.3399, allocations: 8 kB / 466.9 MB, free: 4.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002271/0.3422, allocations: 1.608 MB / 468.5 MB, free: 2.797 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3422, allocations: 0 / 468.5 MB, free: 2.797 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008143/0.343, allocations: 203.7 kB / 468.7 MB, free: 2.598 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.001705/0.3447, allocations: 489.1 kB / 469.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.3458, allocations: 494.4 kB / 469.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.3458, allocations: 4.562 kB / 469.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005508/0.3464, allocations: 306.4 kB / 469.9 MB, free: 1.488 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.3474, allocations: 206 kB / 470.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004257/0.3517, allocations: 2.733 MB / 472.9 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009719/0.3526, allocations: 1.256 MB / 474.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.3529, allocations: 67.44 kB / 474.2 MB, free: 13.16 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3529, allocations: 0 / 474.2 MB, free: 13.16 MB / 382.1 MB Notification: Performance of Templates: time 0.03204/0.385, allocations: 21.12 MB / 495.3 MB, free: 8.086 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/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-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: 9.152349484851584]