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.001145/0.001145, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001204/0.001204, allocations: 191 kB / 18.67 MB, free: 4.434 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.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 51.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.247, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005147/0.2522, allocations: 3.977 MB / 405.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002791/0.255, allocations: 1.906 MB / 407.3 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002514/0.2553, allocations: 11.94 kB / 407.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.2565, allocations: 0.5913 MB / 407.9 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005416/0.2571, allocations: 350.2 kB / 408.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005879/0.2577, allocations: 283.6 kB / 408.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009476/0.2586, allocations: 0.9858 MB / 409.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004614/0.2591, allocations: 356.5 kB / 409.8 MB, free: 396 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003978/0.2595, allocations: 382.7 kB / 410.2 MB, free: 12 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005285/0.26, allocations: 498.2 kB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.851e-05/0.2601, allocations: 80 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.2604, allocations: 140 kB / 410.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.2607, allocations: 470.7 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005207/0.2613, allocations: 0.6329 MB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.2628, allocations: 1.756 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.2628, allocations: 0 / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2628, allocations: 0 / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.2628, allocations: 0 / 413.8 MB, free: 12.45 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.002691/0.2655, allocations: 1.814 MB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.2656, allocations: 8.031 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.2658, allocations: 162.9 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.2674, allocations: 1.173 MB / 416.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.2676, allocations: 101 kB / 417 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-05/0.2677, allocations: 55.84 kB / 417.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.2687, allocations: 0.6595 MB / 417.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.2687, allocations: 0 / 417.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.457e-05/0.2688, allocations: 20 kB / 417.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.2688, allocations: 12 kB / 417.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007867/0.2696, allocations: 439.7 kB / 418.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.2736, allocations: 2.863 MB / 421 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008955/0.2745, allocations: 429.6 kB / 421.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006002/0.2751, allocations: 320.7 kB / 421.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.2752, allocations: 7.984 kB / 421.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.2752, allocations: 39.06 kB / 421.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.2752, allocations: 0 / 421.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001728/0.2769, allocations: 0.7671 MB / 422.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.2771, allocations: 261 kB / 422.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002529/0.2796, allocations: 2.23 MB / 425.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/0.2797, allocations: 37.7 kB / 425.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005078/0.2802, allocations: 0.6312 MB / 425.7 MB, free: 52 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.2803, allocations: 114.4 kB / 425.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.2804, allocations: 77.98 kB / 425.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2806, allocations: 325.9 kB / 426.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003198/0.2809, allocations: 156.7 kB / 426.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.2813, allocations: 312.5 kB / 426.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006474/0.2819, allocations: 397.4 kB / 427.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.282, allocations: 0 / 427.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001333/0.2833, allocations: 0.637 MB / 427.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.2833, allocations: 4 kB / 427.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2833, allocations: 7.938 kB / 427.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002847/0.2836, allocations: 64.94 kB / 427.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.2841, allocations: 91.88 kB / 427.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.2857, allocations: 1.767 MB / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004386/0.2862, allocations: 63.61 kB / 429.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.2862, allocations: 16 kB / 429.7 MB, free: 11.8 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.0005696/0.2868, allocations: 489.5 kB / 430.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.287, allocations: 130.3 kB / 430.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001818/0.2872, allocations: 169.4 kB / 430.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2872, allocations: 7.938 kB / 430.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2872, allocations: 0 / 430.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2872, allocations: 3.984 kB / 430.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.2897, allocations: 1.658 MB / 432.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2897, allocations: 0 / 432.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003156/0.29, allocations: 67.89 kB / 432.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000188/0.2902, allocations: 56.89 kB / 432.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.2902, allocations: 11.98 kB / 432.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001476/0.2917, allocations: 1.72 MB / 434 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2917, allocations: 3.938 kB / 434 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.2931, allocations: 0.7984 MB / 434.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.2935, allocations: 339.2 kB / 435.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.2937, allocations: 11.94 kB / 435.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004289/0.2941, allocations: 47.95 kB / 435.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.176e-05/0.2942, allocations: 31.95 kB / 435.3 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.2942, allocations: 8 kB / 435.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001891/0.2961, allocations: 1.6 MB / 436.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2961, allocations: 0 / 436.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006966/0.2968, allocations: 203.7 kB / 437.1 MB, free: 4.195 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.001014/0.2979, allocations: 468.7 kB / 437.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009975/0.2989, allocations: 0.4986 MB / 438 MB, free: 3.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.2989, allocations: 4.062 kB / 438 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004974/0.2994, allocations: 310.5 kB / 438.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008892/0.3003, allocations: 214.5 kB / 438.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.304, allocations: 2.687 MB / 441.2 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009333/0.305, allocations: 1.253 MB / 442.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.3052, allocations: 67.44 kB / 442.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3052, allocations: 0 / 442.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of Templates: time 0.02958/0.3348, allocations: 21.17 MB / 463.7 MB, free: 9.668 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/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