Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001974/0.001974, allocations: 80.41 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002252/0.002252, allocations: 147 kB / 23.94 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.48e-05/2.611e-05, allocations: 3.125 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004368/0.004394, allocations: 3.659 MB / 322.6 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.007035, allocations: 1.789 MB / 324.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002612/0.007296, allocations: 13.47 kB / 324.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.008608, allocations: 0.5773 MB / 324.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006686/0.009277, allocations: 366.1 kB / 325.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006846/0.009961, allocations: 286.9 kB / 325.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.01123, allocations: 1.007 MB / 326.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004189/0.01165, allocations: 211.1 kB / 326.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007188/0.01237, allocations: 0.5435 MB / 327.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006805/0.01305, allocations: 450.7 kB / 327.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.01319, allocations: 78.5 kB / 327.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003009/0.01349, allocations: 138.7 kB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004794/0.01397, allocations: 486.1 kB / 328.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005324/0.0145, allocations: 380.2 kB / 328.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002214/0.01671, allocations: 1.726 MB / 330.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.01672, allocations: 0 / 330.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01672, allocations: 0.9688 kB / 330.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.01674, allocations: 0 / 330.6 MB, free: 13.17 MB / 302.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.00333/0.02007, allocations: 1.78 MB / 332.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.02011, allocations: 11.08 kB / 332.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000331/0.02044, allocations: 171.7 kB / 332.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001963/0.02241, allocations: 1.131 MB / 333.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.0226, allocations: 169.7 kB / 333.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.322e-05/0.02269, allocations: 48.53 kB / 333.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.02408, allocations: 1.015 MB / 334.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.0241, allocations: 3.938 kB / 334.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.811e-05/0.02417, allocations: 22.88 kB / 334.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.02418, allocations: 11 kB / 334.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008332/0.02502, allocations: 435.7 kB / 335.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004427/0.02944, allocations: 2.516 MB / 337.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.03046, allocations: 397.6 kB / 338.2 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006692/0.03113, allocations: 296.7 kB / 338.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.03115, allocations: 6.906 kB / 338.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.03119, allocations: 42.56 kB / 338.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.254e-06/0.0312, allocations: 0 / 338.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002051/0.03325, allocations: 0.6897 MB / 339.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001898/0.03344, allocations: 265 kB / 339.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003357/0.0368, allocations: 2.197 MB / 341.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.501e-05/0.03688, allocations: 41.7 kB / 341.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007019/0.03758, allocations: 0.6509 MB / 342.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.03771, allocations: 111.1 kB / 342.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.03786, allocations: 74.03 kB / 342.6 MB, free: 3.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.03804, allocations: 322 kB / 342.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004607/0.03851, allocations: 160.6 kB / 343.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006603/0.03917, allocations: 0.5059 MB / 343.6 MB, free: 2.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007855/0.03995, allocations: 397.3 kB / 344 MB, free: 2.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.03996, allocations: 4 kB / 344 MB, free: 2.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001702/0.04166, allocations: 0.6413 MB / 344.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.04168, allocations: 4 kB / 344.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.0417, allocations: 8.125 kB / 344.6 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003386/0.04203, allocations: 72.73 kB / 344.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.04245, allocations: 91.88 kB / 344.8 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001982/0.04443, allocations: 1.637 MB / 346.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006879/0.04512, allocations: 47.77 kB / 346.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.04516, allocations: 19.94 kB / 346.5 MB, free: 15.41 MB / 318.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.000939/0.0461, allocations: 493.5 kB / 347 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003437/0.04644, allocations: 135.1 kB / 347.1 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002904/0.04673, allocations: 157.2 kB / 347.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.04673, allocations: 4 kB / 347.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.04674, allocations: 0 / 347.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.04674, allocations: 0 / 347.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002856/0.0496, allocations: 1.427 MB / 348.7 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.0496, allocations: 4 kB / 348.7 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.04996, allocations: 71.95 kB / 348.8 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.05017, allocations: 56.81 kB / 348.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.0502, allocations: 8 kB / 348.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001668/0.05187, allocations: 1.586 MB / 350.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.05187, allocations: 4.031 kB / 350.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.05357, allocations: 0.7989 MB / 351.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006151/0.05418, allocations: 259 kB / 351.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.05433, allocations: 12 kB / 351.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004936/0.05482, allocations: 43.95 kB / 351.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.674e-05/0.05492, allocations: 35.94 kB / 351.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.05495, allocations: 11.94 kB / 351.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002463/0.05741, allocations: 1.571 MB / 353.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.05741, allocations: 0 / 353.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008483/0.05826, allocations: 207.7 kB / 353.3 MB, free: 8.359 MB / 318.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.001827/0.06008, allocations: 0.4946 MB / 353.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.06123, allocations: 487.8 kB / 354.3 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.06124, allocations: 4.562 kB / 354.3 MB, free: 7.578 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.06181, allocations: 302.7 kB / 354.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.06283, allocations: 192.9 kB / 354.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004875/0.0677, allocations: 2.568 MB / 357.4 MB, free: 4.477 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008533/0.06855, allocations: 0.6678 MB / 358 MB, free: 3.777 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006172/0.06917, allocations: 211.5 kB / 358.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.06938, allocations: 76.48 kB / 358.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.06938, allocations: 0 / 358.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of Templates: time 0.02771/0.09709, allocations: 13.94 MB / 372.3 MB, free: 5.707 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.87917210906744]