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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 110.5 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 196 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009723/0.0009724, allocations: 47.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3538, allocations: 49.43 MB / 400.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005913/0.3597, allocations: 3.983 MB / 404.7 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003184/0.363, allocations: 1.902 MB / 406.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003123/0.3633, allocations: 15.94 kB / 406.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.3645, allocations: 0.5915 MB / 407.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006163/0.3652, allocations: 358.2 kB / 407.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007045/0.3659, allocations: 286.8 kB / 407.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.367, allocations: 0.9858 MB / 408.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004996/0.3675, allocations: 348.5 kB / 409.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004297/0.368, allocations: 382.8 kB / 409.5 MB, free: 164 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005289/0.3685, allocations: 498.2 kB / 410 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.3686, allocations: 80 kB / 410.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002429/0.3689, allocations: 136 kB / 410.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003462/0.3692, allocations: 482.7 kB / 410.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000552/0.3698, allocations: 0.6212 MB / 411.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001559/0.3713, allocations: 1.748 MB / 413.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.3714, allocations: 0 / 413.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3714, allocations: 0 / 413.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.736e-05/0.3714, allocations: 4 kB / 413.1 MB, free: 12.6 MB / 334.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.002885/0.3743, allocations: 1.82 MB / 414.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3743, allocations: 8.031 kB / 414.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002504/0.3746, allocations: 162.9 kB / 415.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.3763, allocations: 1.177 MB / 416.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.3765, allocations: 96.95 kB / 416.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.668e-05/0.3766, allocations: 55.84 kB / 416.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.3778, allocations: 0.6596 MB / 417 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.3778, allocations: 0 / 417 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.3779, allocations: 24 kB / 417.1 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.3779, allocations: 12 kB / 417.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008703/0.3788, allocations: 439.6 kB / 417.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00455/0.3833, allocations: 2.856 MB / 420.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009916/0.3843, allocations: 430.5 kB / 420.8 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008027/0.3852, allocations: 332.2 kB / 421.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.3852, allocations: 0 / 421.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.3852, allocations: 39.06 kB / 421.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.3852, allocations: 3.938 kB / 421.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001915/0.3872, allocations: 0.7671 MB / 421.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.3873, allocations: 265 kB / 422.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003139/0.3905, allocations: 2.226 MB / 424.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.244e-05/0.3906, allocations: 37.7 kB / 424.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006731/0.3912, allocations: 0.6351 MB / 425.1 MB, free: 200 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.3914, allocations: 110.4 kB / 425.2 MB, free: 88 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.3916, allocations: 77.97 kB / 425.3 MB, free: 0 / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.3918, allocations: 329.9 kB / 425.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003652/0.3922, allocations: 160.6 kB / 425.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/0.3927, allocations: 300.6 kB / 426 MB, free: 15.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/0.3934, allocations: 401.3 kB / 426.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3935, allocations: 0 / 426.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001385/0.3948, allocations: 0.637 MB / 427.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.3949, allocations: 4 kB / 427.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3949, allocations: 12.06 kB / 427.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003063/0.3952, allocations: 60.81 kB / 427.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003614/0.3956, allocations: 91.88 kB / 427.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001908/0.3975, allocations: 1.767 MB / 429 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.398, allocations: 59.53 kB / 429 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.3981, allocations: 16 kB / 429.1 MB, free: 11.95 MB / 350.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.0006815/0.3988, allocations: 489.5 kB / 429.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001815/0.3989, allocations: 138.4 kB / 429.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001988/0.3992, allocations: 169.4 kB / 429.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3992, allocations: 7.938 kB / 429.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.3992, allocations: 0 / 429.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3992, allocations: 0 / 429.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/0.4017, allocations: 1.654 MB / 431.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4018, allocations: 4.062 kB / 431.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.4021, allocations: 71.89 kB / 431.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.4023, allocations: 56.81 kB / 431.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.4023, allocations: 8 kB / 431.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001565/0.4039, allocations: 1.724 MB / 433.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.4039, allocations: 3.938 kB / 433.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.4054, allocations: 0.7983 MB / 434.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004348/0.4058, allocations: 327.3 kB / 434.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.406, allocations: 11.98 kB / 434.5 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000464/0.4064, allocations: 51.94 kB / 434.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.4065, allocations: 31.97 kB / 434.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.4066, allocations: 8 kB / 434.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001946/0.4085, allocations: 1.6 MB / 436.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4085, allocations: 0 / 436.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006943/0.4092, allocations: 199.6 kB / 436.4 MB, free: 4.352 MB / 350.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.001104/0.4103, allocations: 473.3 kB / 436.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.4114, allocations: 0.5022 MB / 437.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.4114, allocations: 4 kB / 437.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005289/0.412, allocations: 307 kB / 437.7 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009148/0.4129, allocations: 214.2 kB / 437.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/0.4168, allocations: 2.631 MB / 440.5 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008977/0.4177, allocations: 1.249 MB / 441.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004762/0.4182, allocations: 219.8 kB / 442 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001959/0.4184, allocations: 67.42 kB / 442 MB, free: 14.79 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4184, allocations: 0 / 442 MB, free: 14.79 MB / 366.1 MB Notification: Performance of Templates: time 0.02589/0.4443, allocations: 14.16 MB / 456.2 MB, free: 0.7539 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (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) 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) Reference file matches