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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001531/0.001531, allocations: 116.4 kB / 18.45 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 208 kB / 19.41 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.393/1.393, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB 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.001914/0.001914, allocations: 63.89 kB / 359.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2682, allocations: 50.55 MB / 410.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005908/0.2741, allocations: 4.051 MB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003413/0.2776, allocations: 2.06 MB / 416.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000336/0.2779, allocations: 11.94 kB / 416.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.2792, allocations: 0.599 MB / 416.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007981/0.28, allocations: 390.1 kB / 417.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006934/0.2807, allocations: 283.1 kB / 417.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.2819, allocations: 0.9897 MB / 418.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.2823, allocations: 252.6 kB / 418.8 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004569/0.2828, allocations: 386.8 kB / 419.2 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005396/0.2833, allocations: 498.2 kB / 419.7 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.2834, allocations: 83.94 kB / 419.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002497/0.2837, allocations: 132 kB / 419.9 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003952/0.2841, allocations: 482.6 kB / 420.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006004/0.2847, allocations: 0.6368 MB / 421 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001882/0.2866, allocations: 1.766 MB / 422.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2866, allocations: 0 / 422.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2866, allocations: 0 / 422.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.2866, allocations: 0 / 422.8 MB, free: 4.816 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.00312/0.2897, allocations: 1.871 MB / 424.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2897, allocations: 8.031 kB / 424.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002554/0.29, allocations: 175.9 kB / 424.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/0.2919, allocations: 1.186 MB / 426 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.292, allocations: 96.95 kB / 426.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.2922, allocations: 55.89 kB / 426.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.2933, allocations: 0.6596 MB / 426.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2934, allocations: 3.938 kB / 426.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.783e-05/0.2934, allocations: 24 kB / 426.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.2934, allocations: 12 kB / 426.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007897/0.2942, allocations: 431.7 kB / 427.3 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004656/0.2989, allocations: 2.876 MB / 430.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.2999, allocations: 394.6 kB / 430.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006663/0.3006, allocations: 296.6 kB / 430.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.3006, allocations: 4 kB / 430.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.3006, allocations: 38.56 kB / 430.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.505e-06/0.3006, allocations: 4 kB / 430.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002026/0.3027, allocations: 0.7683 MB / 431.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001539/0.3028, allocations: 273 kB / 431.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003166/0.306, allocations: 2.243 MB / 434.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.158e-05/0.3061, allocations: 33.7 kB / 434.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006464/0.3067, allocations: 0.6474 MB / 434.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.3068, allocations: 115.1 kB / 434.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.307, allocations: 82.02 kB / 435 MB, free: 8.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3071, allocations: 321.9 kB / 435.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.3075, allocations: 156.7 kB / 435.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004731/0.3079, allocations: 304.8 kB / 435.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/0.3087, allocations: 393 kB / 436.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.3087, allocations: 4 kB / 436.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001497/0.3102, allocations: 0.6451 MB / 436.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.3102, allocations: 11.94 kB / 436.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3102, allocations: 7.938 kB / 436.8 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003082/0.3105, allocations: 64.8 kB / 436.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.3109, allocations: 96 kB / 437 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/0.3128, allocations: 1.767 MB / 438.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005446/0.3133, allocations: 55.7 kB / 438.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.3134, allocations: 12.09 kB / 438.8 MB, free: 4.102 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.000704/0.3141, allocations: 489.6 kB / 439.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.3143, allocations: 139.1 kB / 439.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.3145, allocations: 169.5 kB / 439.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3145, allocations: 4 kB / 439.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.3145, allocations: 0 / 439.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3145, allocations: 3.984 kB / 439.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.3174, allocations: 1.657 MB / 441.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3175, allocations: 128 / 441.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003517/0.3178, allocations: 75.89 kB / 441.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002072/0.318, allocations: 64.88 kB / 441.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.318, allocations: 4 kB / 441.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.3198, allocations: 1.724 MB / 443.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3198, allocations: 3.938 kB / 443.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.3215, allocations: 0.8021 MB / 443.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006432/0.3221, allocations: 332.1 kB / 444.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.3222, allocations: 11.98 kB / 444.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.3227, allocations: 47.95 kB / 444.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-05/0.3228, allocations: 31.97 kB / 444.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.3228, allocations: 7.938 kB / 444.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002199/0.325, allocations: 1.615 MB / 446 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.325, allocations: 0 / 446 MB, free: 12.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007203/0.3257, allocations: 203.7 kB / 446.2 MB, free: 12.47 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.00168/0.3274, allocations: 470.2 kB / 446.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3285, allocations: 490.3 kB / 447.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.3285, allocations: 4 kB / 447.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005501/0.3291, allocations: 311.1 kB / 447.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009287/0.33, allocations: 207.9 kB / 447.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/0.3341, allocations: 2.68 MB / 450.3 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009656/0.3351, allocations: 1.253 MB / 451.6 MB, free: 7.172 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000489/0.3356, allocations: 215.8 kB / 451.8 MB, free: 6.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.3357, allocations: 67.44 kB / 451.8 MB, free: 6.891 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3357, allocations: 0 / 451.8 MB, free: 6.891 MB / 366.1 MB Notification: Performance of Templates: time 0.02688/0.3626, allocations: 14.22 MB / 466.1 MB, free: 8.781 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) 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) Reference file matches